Commit 828e181c authored by Stefan Behnel's avatar Stefan Behnel

error handling fix in metaclass utility code

parent 2c0c1639
...@@ -7276,6 +7276,8 @@ static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *na ...@@ -7276,6 +7276,8 @@ static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *na
} }
if (mkw && PyDict_Size(mkw) > 0) { if (mkw && PyDict_Size(mkw) > 0) {
PyObject *margs = PyTuple_New(3); PyObject *margs = PyTuple_New(3);
if (!margs)
goto bad;
Py_INCREF(name); Py_INCREF(name);
Py_INCREF(bases); Py_INCREF(bases);
Py_INCREF(dict); Py_INCREF(dict);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment