summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-08-25 12:31:32 +1000
committerAndrew Tridgell <tridge@samba.org>2010-08-25 23:05:05 +1000
commitd78417a5d66f9d7a6d282baa6968eb9ba902328e (patch)
tree63b32a15a57bc143b97713080f9fcea15dd18b63 /lib/talloc
parentbe598569bbb9dec5cb8035441ef7411ebed29991 (diff)
downloadsamba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.tar.gz
samba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.tar.bz2
samba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.zip
s4-pytalloc: use better names for python talloc objects
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/pytalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/talloc/pytalloc.c b/lib/talloc/pytalloc.c
index 5ed88eca88..4e0b2eca2b 100644
--- a/lib/talloc/pytalloc.c
+++ b/lib/talloc/pytalloc.c
@@ -47,6 +47,7 @@ PyObject *py_talloc_steal_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
if (talloc_steal(ret->talloc_ctx, mem_ctx) == NULL) {
return NULL;
}
+ talloc_set_name_const(ret->talloc_ctx, py_type->tp_name);
ret->ptr = ptr;
return (PyObject *)ret;
}
@@ -67,6 +68,7 @@ PyObject *py_talloc_reference_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx, voi
if (talloc_reference(ret->talloc_ctx, mem_ctx) == NULL) {
return NULL;
}
+ talloc_set_name_const(ret->talloc_ctx, py_type->tp_name);
ret->ptr = ptr;
return (PyObject *)ret;
}