From 47e822c70f4cddf4e80708ba986bd045873ea124 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Tue, 25 Jun 2019 21:59:20 +0800 Subject: [PATCH] Correct the use of MI_DEBUG by conditional build MI_DEBUG is a macro rather than a variable. --- src/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index 7348851e..854aefee 100644 --- a/src/init.c +++ b/src/init.c @@ -234,10 +234,12 @@ static bool _mi_heap_done() { } _mi_os_free(heap, sizeof(mi_thread_data_t), &_mi_stats_main); } - else if (MI_DEBUG > 0) { +#if (MI_DEBUG > 0) + else { _mi_heap_destroy_pages(heap); mi_assert_internal(heap->tld->heap_backing == &_mi_heap_main); } +#endif return false; }