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~62^2~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a388339b1ea4f0c65a6da636bbbdbdea46c0364;p=cython.git fix DECREF of borrowed reference --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 7fd8ce83..6d28e665 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1716,11 +1716,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; }