mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-pytalloc: use better names for python talloc objects
This commit is contained in:
parent
be598569bb
commit
d78417a5d6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user