[Box Backup-commit] COMMIT r1315 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 03 Mar 2007 21:41:00 +0000
Author: chris
Date: 2007-03-03 21:41:00 +0000 (Sat, 03 Mar 2007)
New Revision: 1315
Modified:
box/chris/general/lib/common/Utils.cpp
Log:
Free stack trace strings even in DEBUG mode to avoid memory leaks.
(from chris/merge)
Modified: box/chris/general/lib/common/Utils.cpp
===================================================================
--- box/chris/general/lib/common/Utils.cpp 2007-03-03 21:40:15 UTC (rev 1314)
+++ box/chris/general/lib/common/Utils.cpp 2007-03-03 21:41:00 UTC (rev 1315)
@@ -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