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

Revert broken destructor changes.

This commit is contained in:
Jelmer Vernooij 2011-01-01 06:55:54 +01:00
parent 027e6b2b22
commit fdb0aa2b04
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;
PyObject_Del(self);
self->ob_type->tp_free(self);
}
/**

View File

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