Properly decref objects held by fused functions
authorMark Florisson <markflorisson88@gmail.com>
Sun, 17 Mar 2013 16:49:30 +0000 (16:49 +0000)
committerMark Florisson <markflorisson88@gmail.com>
Sun, 17 Mar 2013 16:49:30 +0000 (16:49 +0000)
Cython/Utility/CythonFunction.c

index 81d0c38..5626f42 100644 (file)
@@ -598,6 +598,7 @@ static PyObject *__pyx_FusedFunction_New(PyTypeObject *type,
                                          PyObject *qualname, PyObject *self, PyObject *module,
                                          PyObject *code);
 
+static __pyx_FusedFunction_clear(__pyx_FusedFunctionObject *self);
 static PyTypeObject *__pyx_FusedFunctionType = NULL;
 static int __pyx_FusedFunction_init(void);
 
@@ -625,7 +626,7 @@ __pyx_FusedFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags,
 
 static void __pyx_FusedFunction_dealloc(__pyx_FusedFunctionObject *self) {
     Py_XDECREF(self->__signatures__);
-    /* __pyx_CyFunction_dealloc((__pyx_CyFunctionObject *) m); */
+    __pyx_FusedFunction_clear(self);
     __pyx_FusedFunctionType->tp_free((PyObject *) self);
 }