add 'nodiscard' attribute to mimalloc interface

This commit is contained in:
daan 2020-02-01 17:29:30 -08:00
parent 5135c2b96a
commit 3f17ac287c
3 changed files with 84 additions and 74 deletions

View file

@ -24,7 +24,7 @@ int main() {
void* p1 = malloc(78);
void* p2 = malloc(24);
free(p1);
p1 = malloc(8);
p1 = mi_malloc(8);
//char* s = strdup("hello\n");
free(p2);
p2 = malloc(16);