diff options
author | Colin Cross <ccross@android.com> | 2016-02-05 16:17:39 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-02-18 16:09:17 -0800 |
commit | 2c75991359df165ca7cc7a6213fb227c0b5ed87c (patch) | |
tree | 4dc02df00481962e80acb454ee857fd5b2f8b2d4 /libc/malloc_debug/malloc_debug.cpp | |
parent | 2d4721c0c57fe2f7c1e1b40df4763a561b3cf856 (diff) |
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
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
-rw-r--r-- | libc/malloc_debug/malloc_debug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |