mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 19:23:08 +00:00
allocgate: actually free memory in gpa
This commit is contained in:
parent
8f9d857932
commit
885c73f343
@ -627,6 +627,8 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
|
|||||||
self.total_requested_bytes -= entry.value_ptr.requested_size;
|
self.total_requested_bytes -= entry.value_ptr.requested_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!config.never_unmap) self.backing_allocator.rawFree(old_mem, old_align, ret_addr);
|
||||||
|
|
||||||
if (config.verbose_log) {
|
if (config.verbose_log) {
|
||||||
log.info("large free {d} bytes at {*}", .{ old_mem.len, old_mem.ptr });
|
log.info("large free {d} bytes at {*}", .{ old_mem.len, old_mem.ptr });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user