walters / rpms / samba

Forked from rpms/samba 5 years ago
Clone
7f2b69e
commit 5db0cd55d4db9cc71f32dc0097e2f014c22967bc
7f2b69e
Author:     Andrew Bartlett <abartlet@samba.org>
7f2b69e
AuthorDate: Mon May 9 17:43:45 2011 +0200
7f2b69e
Commit:     Andrew Bartlett <abartlet@samba.org>
7f2b69e
CommitDate: Fri May 13 18:50:23 2011 +0200
7f2b69e
7f2b69e
    lib/util/ Fix crash bug caused by gfree_debug()
7f2b69e
    
7f2b69e
    The issue is that we should reset the debug_num_classes to 0 when we
7f2b69e
    un-initialise the debug system.
7f2b69e
    
7f2b69e
    Andrew Bartlett
7f2b69e
---
7f2b69e
 lib/util/debug.c |    2 +-
7f2b69e
 1 files changed, 1 insertions(+), 1 deletions(-)
7f2b69e
7f2b69e
diff --git a/lib/util/debug.c b/lib/util/debug.c
7f2b69e
index b0a7882..c1b33de 100644
7f2b69e
--- a/lib/util/debug.c
7f2b69e
+++ b/lib/util/debug.c
7f2b69e
@@ -203,7 +203,7 @@ void gfree_debugsyms(void)
7f2b69e
 
7f2b69e
 	TALLOC_FREE(format_bufr);
7f2b69e
 
7f2b69e
-	debug_num_classes = DBGC_MAX_FIXED;
7f2b69e
+	debug_num_classes = 0;
7f2b69e
 
7f2b69e
 	state.initialized = false;
7f2b69e
 }