diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-08-25 12:31:32 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-08-25 23:05:05 +1000 |
commit | d78417a5d66f9d7a6d282baa6968eb9ba902328e (patch) | |
tree | 63b32a15a57bc143b97713080f9fcea15dd18b63 | |
parent | be598569bbb9dec5cb8035441ef7411ebed29991 (diff) | |
download | samba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.tar.gz samba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.tar.bz2 samba-d78417a5d66f9d7a6d282baa6968eb9ba902328e.zip |
s4-pytalloc: use better names for python talloc objects
-rw-r--r-- | lib/talloc/pytalloc.c | 2 |
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; } |