From: Stefan Behnel Date: Mon, 29 Oct 2007 18:35:57 +0000 (+0100) Subject: fix DECREF of borrowed reference X-Git-Tag: 0.9.6.14~29^2~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24a2be7ca78c13411f5aa62b1156b908b22c4fed;p=cython.git fix DECREF of borrowed reference --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 8526687b..2ce7db91 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1719,11 +1719,9 @@ static int __Pyx_ImportFunction(PyObject *module, char *funcname, void **f, char goto bad; } *f = PyCObject_AsVoidPtr(cobj); - Py_DECREF(cobj); Py_DECREF(d); return 0; bad: - Py_XDECREF(cobj); Py_XDECREF(d); return -1; }