From 4f72d06215ce267db2694259a81b0968d4b39f67 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 9 May 2011 17:43:45 +0200 Subject: [PATCH] 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 (cherry picked from commit 5db0cd55d4db9cc71f32dc0097e2f014c22967bc) Signed-off-by: Andreas Schneider --- lib/util/debug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/util/debug.c b/lib/util/debug.c index 2ff7cb2..108161e 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -202,7 +202,7 @@ void gfree_debugsyms(void) TALLOC_FREE(format_bufr); - debug_num_classes = DBGC_MAX_FIXED; + debug_num_classes = 0; state.initialized = false; } -- 1.7.7.3