summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
-rw-r--r--libc/malloc_debug/malloc_debug.cpp4
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;