From: Sage Weil Date: Mon, 21 Oct 2013 16:22:35 +0000 (-0700) Subject: common/BackTrace: fix memory leak X-Git-Tag: v0.72-rc1~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=715d2ab318a18b227f0cd9fcd9ff472f49ec86f2;p=ceph.git common/BackTrace: fix memory leak Signed-off-by: Sage Weil --- diff --git a/src/common/BackTrace.cc b/src/common/BackTrace.cc index ebbb33c01451..6cace65ab6d4 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;