join.py: Remove talloc enable_null_tracking
authorGarming Sam <garming@catalyst.net.nz>
Mon, 18 Jul 2016 04:58:04 +0000 (16:58 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Jul 2016 11:41:12 +0000 (13:41 +0200)
The removal of enable_null_tracking is required because we will no
longer importing join.py in every single samba-tool invocation. Without
removing this line, 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>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/join.py

index 3532a7f1e8f459db6da6a3cef57005337f89a62c..10cc5a38b10c4a395d09966e4f77e314e1bda52f 100644 (file)
@@ -39,9 +39,6 @@ import talloc
 import random
 import time
 
-# this makes debugging easier
-talloc.enable_null_tracking()
-
 class DCJoinException(Exception):
 
     def __init__(self, msg):