From 24a2be7ca78c13411f5aa62b1156b908b22c4fed Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 29 Oct 2007 19:35:57 +0100 Subject: [PATCH] fix DECREF of borrowed reference --- Cython/Compiler/ModuleNode.py | 2 -- 1 file changed, 2 deletions(-) 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; } -- 2.26.2