mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-01 09:14:38 +03:00
fix2
This commit is contained in:
parent
33d5ea5cd2
commit
f515de6d7b
1 changed files with 1 additions and 1 deletions
2
src/os.c
2
src/os.c
|
@ -310,7 +310,7 @@ static void* mi_os_prim_alloc_aligned(size_t size, size_t alignment, bool commit
|
|||
// explicitly commit only the aligned part
|
||||
if (commit) {
|
||||
if (!_mi_os_commit(p, size, NULL)) {
|
||||
mi_os_prim_free(p, size, size);
|
||||
mi_os_prim_free(*base, size, size);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue