mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Fix zlib allocator usage
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user