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