diff options
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index ee0ede4..675d5b5 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -265,7 +265,7 @@ PyComplex_AsCComplex(PyObject *op) static void complex_dealloc(PyObject *op) { - PyObject_DEL(op); + op->ob_type->tp_free(op); } @@ -970,6 +970,7 @@ PyTypeObject PyComplex_Type = { 0, /* tp_init */ 0, /* tp_alloc */ complex_new, /* tp_new */ + _PyObject_Del, /* tp_free */ }; #endif |