Commit 00dd94db authored by Stefan Behnel's avatar Stefan Behnel

missing decref in __Pyx_ImportType()

parent d8f054f3
......@@ -2010,6 +2010,9 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
goto bad;
result = PyObject_GetAttr(py_module, py_name);
Py_DECREF(py_name);
py_name = 0;
Py_DECREF(py_module);
py_module = 0;
if (!result)
goto bad;
if (!PyType_Check(result)) {
......@@ -2026,6 +2029,7 @@ static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class
}
return (PyTypeObject *)result;
bad:
Py_XDECREF(py_module);
Py_XDECREF(result);
return 0;
}
......
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