summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-10-21 09:22:35 -0700
committerSage Weil <sage@inktank.com>2013-10-21 09:22:35 -0700
commit715d2ab318a18b227f0cd9fcd9ff472f49ec86f2 (patch)
tree4020ebdf31069410809105b53b741b5d8939832c
parent687ecd8bf961c2b0e628251691056aff5581a7e3 (diff)
downloadceph-715d2ab318a18b227f0cd9fcd9ff472f49ec86f2.tar.gz
common/BackTrace: fix memory leakwip-6603
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/common/BackTrace.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/BackTrace.cc b/src/common/BackTrace.cc
index ebbb33c0145..6cace65ab6d 100644
--- a/src/common/BackTrace.cc
+++ b/src/common/BackTrace.cc
@@ -55,6 +55,7 @@ void BackTrace::print(std::ostream& out)
}
out << " " << (i-skip+1) << ": (" << function << end << std::endl;
//fprintf(out, " %s:%s\n", stack.strings[i], function);
+ free(foo);
} else {
// didn't find the mangled name, just print the whole line
out << " " << (i-skip+1) << ": " << strings[i] << std::endl;