From d78417a5d66f9d7a6d282baa6968eb9ba902328e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 25 Aug 2010 12:31:32 +1000 Subject: s4-pytalloc: use better names for python talloc objects --- lib/talloc/pytalloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/talloc') 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; } -- cgit