mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
python: Fix deallocation bug in pytalloc.
(This used to be commit b849b4a6c4
)
This commit is contained in:
parent
3b16c532f2
commit
aca6bd5a2a
@ -31,7 +31,7 @@ PyObject *py_talloc_import_ex(PyTypeObject *py_type, TALLOC_CTX *mem_ctx,
|
||||
void *ptr)
|
||||
{
|
||||
py_talloc_Object *ret = PyObject_New(py_talloc_Object, py_type);
|
||||
ret->talloc_ctx = talloc_reference(mem_ctx, ptr);
|
||||
ret->talloc_ctx = talloc_reference(NULL, mem_ctx);
|
||||
ret->ptr = ptr;
|
||||
return (PyObject *)ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user