summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-29 15:58:12 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-03 01:48:04 +0100
commitcbf504b0c5e08ccf9776f079ef2d4a0c2258241b (patch)
tree441eb596e5638ef128f6df47c03065b2cc3a5c6f /source4
parentb320cc799096fb07870c5e5d6d69d485cb1d1ea5 (diff)
downloadsamba-cbf504b0c5e08ccf9776f079ef2d4a0c2258241b.tar.gz
samba-cbf504b0c5e08ccf9776f079ef2d4a0c2258241b.tar.bz2
samba-cbf504b0c5e08ccf9776f079ef2d4a0c2258241b.zip
s4-python: Properly call PyObject_Del from all destructors.
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/pyldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 354e83d8d3..d829c42ce6 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -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 = {