mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
add 'nodiscard' attribute to mimalloc interface
This commit is contained in:
parent
5135c2b96a
commit
3f17ac287c
3 changed files with 84 additions and 74 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue