From 6a408ad0174e0127e48e065e4855b532782faaba Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 19 Oct 2018 21:46:36 -0400 Subject: [PATCH] add init calls to malloc_enable/malloc_disable --- malloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/malloc.c b/malloc.c index f4dea29..6b9fadb 100644 --- a/malloc.c +++ b/malloc.c @@ -1329,10 +1329,12 @@ COLD EXPORT int h_iterate(UNUSED uintptr_t base, UNUSED size_t size, } COLD EXPORT void h_malloc_disable(void) { + init(); full_lock(); } COLD EXPORT void h_malloc_enable(void) { + init(); full_unlock(); } #endif