add check to see if we truly override the system malloc

This commit is contained in:
daan 2019-06-27 13:34:50 -07:00
parent d2a2508af3
commit 4c87643c29

View File

@ -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;
}