summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-09 17:43:45 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-05-13 18:50:23 +0200
commit5db0cd55d4db9cc71f32dc0097e2f014c22967bc (patch)
tree95cc975f71fa360600847adebdc457b53384bc53 /lib/util
parent3d100216b84f4f25c3e761741eda2cc134957e96 (diff)
downloadsamba-5db0cd55d4db9cc71f32dc0097e2f014c22967bc.tar.gz
samba-5db0cd55d4db9cc71f32dc0097e2f014c22967bc.tar.bz2
samba-5db0cd55d4db9cc71f32dc0097e2f014c22967bc.zip
lib/util/ Fix crash bug caused by gfree_debug()
The issue is that we should reset the debug_num_classes to 0 when we un-initialise the debug system. Andrew Bartlett
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index b0a78823fc..c1b33de6d1 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -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;
}