mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
add MIMALLOC_OVERRIDE setting to disable redirection at runtime
This commit is contained in:
parent
095a87be2e
commit
d1f708af59
2 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue