--- adnsmodule.c~ 2007-03-20 00:08:33.000000000 +0100 +++ adnsmodule.c 2007-03-20 00:09:16.000000000 +0100 @@ -719,7 +719,7 @@ adns_finish(self->state); Py_END_ALLOW_THREADS; Py_INCREF(Py_None); - PyMem_DEL(self); + PyObject_Free(self); } static char ADNS_Statetype__doc__[] = @@ -930,7 +930,7 @@ Py_XDECREF(self->exc_type); Py_XDECREF(self->exc_value); Py_XDECREF(self->exc_traceback); - PyMem_DEL(self); + PyObject_Free(self); } static char ADNS_Querytype__doc__[] =