1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00

python: Fix deallocation bug in pytalloc.

This commit is contained in:
Jelmer Vernooij
2008-01-14 06:03:33 +01:00
parent 4c87af9531
commit b849b4a6c4

View File

@@ -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;
}