From 636bb94fe69e48f07e87cc206ad730aeecb58158 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 8 Sep 2011 01:01:44 +0000 Subject: [PATCH] improve Valgrind output --- debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug.h b/debug.h index 1b89f66c..1dedb708 100644 --- a/debug.h +++ b/debug.h @@ -8,7 +8,7 @@ #define realloc(x,s) DebugMemory_realloc(x, s, __FILE__, __LINE__, #x) #define strdup(x) DebugMemory_strdup(x, __FILE__, __LINE__) #define free(x) DebugMemory_free(x, __FILE__, __LINE__) - #define debug_done() DebugMemory_report() + #define debug_done() DebugMemory_report(); _nc_free_and_exit() #elif defined(DEBUGLITE) @@ -16,13 +16,13 @@ #ifdef NDEBUG #undef NDEBUG #endif - #define debug_done() sleep(0) + #define debug_done() #else /* No debugging */ #define NDEBUG - #define debug_done() sleep(0) + #define debug_done() #endif