Commit 5a388339 authored by Stefan Behnel's avatar Stefan Behnel

fix DECREF of borrowed reference

parent f8e75a14
...@@ -1716,11 +1716,9 @@ static int __Pyx_ImportFunction(PyObject *module, char *funcname, void **f, char ...@@ -1716,11 +1716,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