mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
use regular free in zone_free on macos
This commit is contained in:
parent
515047b676
commit
3d767ebef6
3 changed files with 5 additions and 4 deletions
|
@ -64,7 +64,8 @@ static void* zone_valloc(malloc_zone_t* zone, size_t size) {
|
|||
|
||||
static void zone_free(malloc_zone_t* zone, void* p) {
|
||||
MI_UNUSED(zone);
|
||||
mi_cfree(p);
|
||||
// mi_cfree(p); // checked free as `zone_free` may be called with invalid pointers
|
||||
mi_free(p); // with the page_map and pagemap_commit=1 we can use the regular free
|
||||
}
|
||||
|
||||
static void* zone_realloc(malloc_zone_t* zone, void* p, size_t newsize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue