add check to see if we truly override the system malloc
This commit is contained in:
parent
d2a2508af3
commit
4c87643c29
@ -20,6 +20,13 @@ int main() {
|
||||
free(p2);
|
||||
free(s);
|
||||
mi_collect(true);
|
||||
|
||||
/* now test if override worked by allocating/freeing across the api's*/
|
||||
p1 = mi_malloc(32);
|
||||
free(p1);
|
||||
p2 = malloc(32);
|
||||
mi_free(p2);
|
||||
|
||||
mi_stats_print(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user