Fix zlib allocator usage

This commit is contained in:
Kai Tamkun
2025-08-13 18:59:17 -07:00
parent 9616c88583
commit de975a9689

View File

@@ -304,6 +304,10 @@ const ZlibAllocator = struct {
return zone.malloc_zone_calloc(items, len) orelse bun.outOfMemory();
}
if (comptime !bun.use_mimalloc) {
return std.c.calloc(items, len) orelse bun.outOfMemory();
}
return mimalloc.mi_calloc(items, len) orelse bun.outOfMemory();
}