From ee95f5d73a7f2ca50d38dea6e862a6c683dfc8cc Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Tue, 20 Dec 2005 08:15:28 +0000 Subject: Better to leak block quietly from backtrace_symbols on debug build than erroneously report a leak when there isn't one --- lib/common/Utils.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1