add heap leak check method

This commit is contained in:
daan 2020-04-07 09:04:20 -07:00
parent aa47541ee5
commit 40385c528b
3 changed files with 18 additions and 2 deletions

View file

@ -33,7 +33,7 @@ int main() {
free(p2);
p2 = malloc(16);
p1 = realloc(p1, 32);
mi_heap_print_json(NULL,NULL,NULL);
mi_heap_check_leak(NULL,NULL,NULL);
free(p1);
free(p2);
//free(s);