1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s4-python: Properly call PyObject_Del from all destructors.

This commit is contained in:
Jelmer Vernooij 2010-12-29 15:58:12 +01:00
parent b320cc7990
commit cbf504b0c5
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ static void py_talloc_dealloc(PyObject* self)
py_talloc_Object *obj = (py_talloc_Object *)self;
assert(talloc_unlink(NULL, obj->talloc_ctx) != -1);
obj->talloc_ctx = NULL;
self->ob_type->tp_free(self);
PyObject_Del(self);
}
/**

View File

@ -1502,7 +1502,7 @@ static PyObject *PyLdb_FromLdbContext(struct ldb_context *ldb_ctx)
static void py_ldb_dealloc(PyLdbObject *self)
{
talloc_free(self->mem_ctx);
self->ob_type->tp_free(self);
PyObject_Del(self);
}
PyTypeObject PyLdb = {