fix DECREF of borrowed reference
authorStefan Behnel <scoder@users.berlios.de>
Mon, 29 Oct 2007 18:35:57 +0000 (19:35 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 29 Oct 2007 18:35:57 +0000 (19:35 +0100)
Cython/Compiler/ModuleNode.py

index 8526687be25cda941a0e537950ac65052af686e7..2ce7db91d343d88113ddf85c4f9e83a3021025db 100644 (file)
@@ -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;
 }