mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
merge from 'dev-exp'; add support for MIMALLOC_OVERRIDE environment variable
This commit is contained in:
commit
bbf97fa02d
5 changed files with 47 additions and 37 deletions
|
@ -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
Add a link
Reference in a new issue