From 828e181c75e5800cc25c356b89dc49b9a5715aff Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 8 Nov 2010 19:30:57 +0100 Subject: [PATCH] error handling fix in metaclass utility code --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.26.2