1
0
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:
Jelmer Vernooij 2008-01-14 06:03:33 +01:00
parent 3b16c532f2
commit aca6bd5a2a

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