[Box Backup-commit] COMMIT r1153 - box/chris/merge/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Mon, 13 Nov 2006 15:54:49 +0000
Author: chris
Date: 2006-11-13 15:54:49 +0000 (Mon, 13 Nov 2006)
New Revision: 1153
Modified:
box/chris/merge/lib/common/Utils.cpp
Log:
Free backtrace strings even in debug mode by suppressing warnings from
DebugMemLeakFinder, to avoid a memory leak (refs #3)
Modified: box/chris/merge/lib/common/Utils.cpp
===================================================================
--- box/chris/merge/lib/common/Utils.cpp 2006-11-13 15:53:29 UTC (rev 1152)
+++ box/chris/merge/lib/common/Utils.cpp 2006-11-13 15:54:49 UTC (rev 1153)
@@ -74,11 +74,13 @@
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