summaryrefslogtreecommitdiff
path: root/lib/talloc
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 /lib/talloc
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 'lib/talloc')
-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 614b81f057..94a163d3d9 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -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);
}
/**