projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c0c163
)
error handling fix in metaclass utility code
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 8 Nov 2010 18:30:57 +0000
(19:30 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 8 Nov 2010 18:30:57 +0000
(19:30 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 48b48badb6ab54d188d5191093bc022ea3fd2fb1..c93546c9ccc324fef2e8c229da86f70e1b2dbcd4 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-7276,6
+7276,8
@@
static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *na
}
if (mkw && PyDict_Size(mkw) > 0) {
PyObject *margs = PyTuple_New(3);
+ if (!margs)
+ goto bad;
Py_INCREF(name);
Py_INCREF(bases);
Py_INCREF(dict);