]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pytalloc: Add a warning about enable_null_tracking
authorGarming Sam <garming@catalyst.net.nz>
Sun, 17 Jul 2016 21:54:16 +0000 (09:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Jul 2016 11:41:12 +0000 (13:41 +0200)
If it is called in the middle of a script such as samba-tool, memory
would be hanging from both the actual NULL context and the
talloc_null_context (causing a segfault at system_exit).

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/talloc/pytalloc_guide.txt

index 1aa4f9944790ac5d1285655c124f86a469a63471..962d44933ba2b45fa51688d842c4592c3ab09b61 100644 (file)
@@ -182,6 +182,8 @@ This enables tracking of the NULL memory context without enabling leak
 reporting on exit. Useful for when you want to do your own leak
 reporting call via talloc_report_null_full().
 
+This must be done in the top level script, not an imported module.
+
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 pytalloc_total_blocks(obj?)