projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee0c69
)
fix ref-leak in Py2 metaclass support
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 3 Nov 2010 20:44:55 +0000
(21:44 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 3 Nov 2010 20:44:55 +0000
(21:44 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index af17c28f415b04bb5fdade71775f1216bc65d515..0bb334ded275918c66c9c8dc919eede9bd4ced18 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-7187,6
+7187,7
@@
static PyObject *__Pyx_CreateClass(
}
result = PyObject_CallFunctionObjArgs(metaclass, name, bases, methods, NULL);
+ Py_DECREF(metaclass);
#else
/* it seems that python3+ handle __metaclass__ itself */
result = PyObject_CallFunctionObjArgs((PyObject *)&PyType_Type, name, bases, methods, NULL);