authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-10 21:06:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:42:30-07:00
log404cbc36c52a50975a69e78da716f2258e5b1696
tree17450c6c9bbc400ca049a4a7361ae92574f0bad1
parent50bebb9e21c7e131522bec467b477ed7f55feb91

InternPool: fix deinit leaking inner maps


1 files changed, 2 insertions(+), 1 deletions(-)

src/InternPool.zig+2-1
......@@ -1294,6 +1294,7 @@ pub fn deinit(ip: *InternPool, gpa: Allocator) void {
12941294 ip.items.deinit(gpa);
12951295 ip.extra.deinit(gpa);
12961296 ip.limbs.deinit(gpa);
1297 ip.string_bytes.deinit(gpa);
12971298
12981299 ip.structs_free_list.deinit(gpa);
12991300 ip.allocated_structs.deinit(gpa);
......@@ -1301,8 +1302,8 @@ pub fn deinit(ip: *InternPool, gpa: Allocator) void {
13011302 ip.unions_free_list.deinit(gpa);
13021303 ip.allocated_unions.deinit(gpa);
13031304
1305 for (ip.maps) |*map| map.deinit(gpa);
13041306 ip.maps.deinit(gpa);
1305 ip.string_bytes.deinit(gpa);
13061307
13071308 ip.* = undefined;
13081309}