diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:54:49 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:54:49 +0000 |
commit | 826c2675ec1c2cb60e0ef1842c7a5ff7a548eeaa (patch) | |
tree | 3e884c2db8ac757c05482889687ab7be8212d2bc /lib/common | |
parent | f0095d3b907bd38be741ceca9f5fa6998738f660 (diff) |
Free backtrace strings even in debug mode by suppressing warnings from
DebugMemLeakFinder, to avoid a memory leak (refs #3)
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/Utils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp index 63d45b5a..ae06dc70 100644 --- a/lib/common/Utils.cpp +++ b/lib/common/Utils.cpp @@ -74,11 +74,13 @@ void DumpStackBacktrace() printf ("Obtained %zd stack frames.\n", size); for(i = 0; i < size; i++) + { printf("%s\n", strings[i]); + } -#ifndef MEMLEAKFINDER_MALLOC_MONITORING_DEFINED +#include "MemLeakFindOff.h" free (strings); -#endif +#include "MemLeakFindOn.h" } #endif |