mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 03:48:42 +03:00
add heap leak check method
This commit is contained in:
parent
aa47541ee5
commit
40385c528b
3 changed files with 18 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue