diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-14 06:03:33 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-14 19:53:06 +0100 |
commit | aca6bd5a2a2c5fe266509499be624bbab7b5c3c0 (patch) | |
tree | 36bcf8d16e9d1348f47fc7e9f5461bb249e20706 /source4/scripting | |
parent | 3b16c532f21202696d54ef87f8fa74d066812898 (diff) | |
download | samba-aca6bd5a2a2c5fe266509499be624bbab7b5c3c0.tar.gz samba-aca6bd5a2a2c5fe266509499be624bbab7b5c3c0.tar.bz2 samba-aca6bd5a2a2c5fe266509499be624bbab7b5c3c0.zip |
python: Fix deallocation bug in pytalloc.
(This used to be commit b849b4a6c4c9b03a9704449a69f00a59fc0df9c5)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/pytalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/pytalloc.c b/source4/scripting/python/pytalloc.c index dc61a0a13d..d8d3efe69c 100644 --- a/source4/scripting/python/pytalloc.c +++ b/source4/scripting/python/pytalloc.c @@ -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; } |