Commit 24a2be7c authored by Stefan Behnel's avatar Stefan Behnel

fix DECREF of borrowed reference

parent ac6d9069
...@@ -1719,11 +1719,9 @@ static int __Pyx_ImportFunction(PyObject *module, char *funcname, void **f, char ...@@ -1719,11 +1719,9 @@ static int __Pyx_ImportFunction(PyObject *module, char *funcname, void **f, char
goto bad; goto bad;
} }
*f = PyCObject_AsVoidPtr(cobj); *f = PyCObject_AsVoidPtr(cobj);
Py_DECREF(cobj);
Py_DECREF(d); Py_DECREF(d);
return 0; return 0;
bad: bad:
Py_XDECREF(cobj);
Py_XDECREF(d); Py_XDECREF(d);
return -1; return -1;
} }
......
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