From 5a388339b1ea4f0c65a6da636bbbdbdea46c0364 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 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; } -- 2.26.2