summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-29 15:58:12 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-01 02:54:05 +0100
commit4350e0c3c99fedab99ab1cc680e9d8fe555162e9 (patch)
treeac3a67038c9b74e395f5f2ede8822200b7313baa /lib
parent9529fdab26270f4d35119e87f9ca8a7693c24a3f (diff)
downloadsamba-4350e0c3c99fedab99ab1cc680e9d8fe555162e9.tar.gz
samba-4350e0c3c99fedab99ab1cc680e9d8fe555162e9.tar.bz2
samba-4350e0c3c99fedab99ab1cc680e9d8fe555162e9.zip
s4-python: Properly call PyObject_Del from all destructors.
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/pytalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 6ddcac988b..457358ed8f 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -94,7 +94,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);
}
/**