lib/util/ Fix crash bug caused by gfree_debug()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 May 2011 15:43:45 +0000 (17:43 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 May 2011 16:50:23 +0000 (18:50 +0200)
The issue is that we should reset the debug_num_classes to 0 when we
un-initialise the debug system.

Andrew Bartlett

lib/util/debug.c

index b0a78823fcbce5911f45a1b4c370a82cca2c1a67..c1b33de6d1e818018dc236fea02f18890b5a425b 100644 (file)
@@ -203,7 +203,7 @@ void gfree_debugsyms(void)
 
        TALLOC_FREE(format_bufr);
 
-       debug_num_classes = DBGC_MAX_FIXED;
+       debug_num_classes = 0;
 
        state.initialized = false;
 }