add MIMALLOC_OVERRIDE setting to disable redirection at runtime

This commit is contained in:
daan 2019-07-26 13:01:43 -07:00
parent 095a87be2e
commit d1f708af59
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -30,12 +30,12 @@ int main() {
free(p1);
p1 = malloc(8);
char* s = mi_strdup("hello\n");
free(p2);
mi_free(p2);
p2 = malloc(16);
p1 = realloc(p1, 32);
free(p1);
free(p2);
free(s);
mi_free(s);
Test* t = new Test(42);
delete t;
t = new (std::nothrow) Test(42);