diff --git a/src/init.c b/src/init.c index 486ff655..a2e7a9d2 100644 --- a/src/init.c +++ b/src/init.c @@ -231,8 +231,6 @@ static bool _mi_heap_done(void) { mi_heap_t* heap = _mi_heap_default; if (!mi_heap_is_initialized(heap)) return true; - void* p = mi_malloc(16); - // reset default heap _mi_heap_default = (_mi_is_main_thread() ? &_mi_heap_main : (mi_heap_t*)&_mi_heap_empty); @@ -260,7 +258,6 @@ static bool _mi_heap_done(void) { mi_assert_internal(heap->tld->heap_backing == &_mi_heap_main); } #endif - mi_free(p); return false; }