mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
InternPool: fix deinit leaking inner maps
This commit is contained in:
parent
50bebb9e21
commit
404cbc36c5
@ -1294,6 +1294,7 @@ pub fn deinit(ip: *InternPool, gpa: Allocator) void {
|
||||
ip.items.deinit(gpa);
|
||||
ip.extra.deinit(gpa);
|
||||
ip.limbs.deinit(gpa);
|
||||
ip.string_bytes.deinit(gpa);
|
||||
|
||||
ip.structs_free_list.deinit(gpa);
|
||||
ip.allocated_structs.deinit(gpa);
|
||||
@ -1301,8 +1302,8 @@ pub fn deinit(ip: *InternPool, gpa: Allocator) void {
|
||||
ip.unions_free_list.deinit(gpa);
|
||||
ip.allocated_unions.deinit(gpa);
|
||||
|
||||
for (ip.maps) |*map| map.deinit(gpa);
|
||||
ip.maps.deinit(gpa);
|
||||
ip.string_bytes.deinit(gpa);
|
||||
|
||||
ip.* = undefined;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user