From: Mark Wooding Date: Sat, 10 Oct 2009 12:15:39 +0000 (+0100) Subject: cdbmodule.c: Fix deallocation. X-Git-Tag: 0.32-5.3~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/python-cdb/commitdiff_plain/e16054cf091d5b47a7ee9da8e616e7c5bfbceaf6?hp=17a1b1a2b23bd8befdf102f1e4562eb8ad701080 cdbmodule.c: Fix deallocation. Use PyObject_Del rather than PyMem_DEL, because the former doesn't lead to a ghastly crash. --- diff --git a/src/cdbmodule.c b/src/cdbmodule.c index bdf10dc..bfd7f00 100644 --- a/src/cdbmodule.c +++ b/src/cdbmodule.c @@ -655,7 +655,7 @@ cdbo_dealloc(CdbObject *self) { /* del(cdb_o) */ cdb_free(&self->c); - PyMem_DEL(self); + PyObject_Del((PyObject *)self); } static PyObject * @@ -823,7 +823,7 @@ cdbmake_dealloc(cdbmakeobject *self) { Py_DECREF(self->fntmp); } - PyMem_DEL(self); + PyObject_Del((PyObject *)self); } static PyObject *