From: Stefan Behnel Date: Mon, 8 Nov 2010 18:30:57 +0000 (+0100) Subject: error handling fix in metaclass utility code X-Git-Tag: 0.14.alpha0~199 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=828e181c75e5800cc25c356b89dc49b9a5715aff;p=cython.git error handling fix in metaclass utility code --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 48b48bad..c93546c9 100755 --- 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);