diff --git a/stb_leakcheck.h b/stb_leakcheck.h index 9fefceb..705c6fc 100644 --- a/stb_leakcheck.h +++ b/stb_leakcheck.h @@ -58,8 +58,8 @@ void stb_leakcheck_free(void *ptr) mi->prev->next = mi->next; if (mi->next) mi->next->prev = mi->prev; - #endif free(mi); + #endif } }