]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/BackTrace: fix memory leak 751/head
authorSage Weil <sage@inktank.com>
Mon, 21 Oct 2013 16:22:35 +0000 (09:22 -0700)
committerSage Weil <sage@inktank.com>
Mon, 21 Oct 2013 16:22:35 +0000 (09:22 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/BackTrace.cc

index ebbb33c014510afd87c7f0575b7f6575ab0c87c2..6cace65ab6d4339dac7fc16d5b27ad5651f62b83 100644 (file)
@@ -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;