summaryrefslogtreecommitdiff
path: root/lib/common/Utils.cpp
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2005-12-20 08:15:28 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2005-12-20 08:15:28 +0000
commitee95f5d73a7f2ca50d38dea6e862a6c683dfc8cc (patch)
tree6bd6cf80ae96e637ae1558e8497e9386ddeca0f5 /lib/common/Utils.cpp
parentdd60d9ad699c056ee7bf7649ef456780df47b521 (diff)
Better to leak block quietly from backtrace_symbols on debug build than erroneously report a leak when there isn't one
Diffstat (limited to 'lib/common/Utils.cpp')
-rw-r--r--lib/common/Utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp
index b4d3144b..63d45b5a 100644
--- a/lib/common/Utils.cpp
+++ b/lib/common/Utils.cpp
@@ -76,7 +76,9 @@ void DumpStackBacktrace()
for(i = 0; i < size; i++)
printf("%s\n", strings[i]);
+#ifndef MEMLEAKFINDER_MALLOC_MONITORING_DEFINED
free (strings);
+#endif
}
#endif