From 2c75991359df165ca7cc7a6213fb227c0b5ed87c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 5 Feb 2016 16:17:39 -0800 Subject: Add backtrace_string and export to libmemunreachable Add backtrace_string to convert a malloc_debug backtrace to a string. Also move the backtrace functions to libc_malloc_debug_backtrace so that libmemunreachable can reuse them. Change-Id: I5ad67001c0b4d184903c762863a8588181d4873b --- libc/malloc_debug/malloc_debug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/malloc_debug/malloc_debug.cpp') diff --git a/libc/malloc_debug/malloc_debug.cpp b/libc/malloc_debug/malloc_debug.cpp index e079c7e66..aa6f5f747 100644 --- a/libc/malloc_debug/malloc_debug.cpp +++ b/libc/malloc_debug/malloc_debug.cpp @@ -223,10 +223,10 @@ void debug_finalize() { g_debug->track->DisplayLeaks(*g_debug); } - backtrace_shutdown(); - DebugDisableSet(true); + backtrace_shutdown(); + delete g_debug; g_debug = nullptr; -- cgit v1.2.3