From 7e5aacab69b74de23ce57d2c7f3af0061c3343cf Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Sun, 3 Jan 2021 16:44:53 +0100 Subject: [PATCH] stage2: add some missing deallocations in Compilation.zig --- src/Compilation.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Compilation.zig b/src/Compilation.zig index 9a06aee56125..2ba76d0f5e37 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1173,6 +1173,7 @@ pub fn destroy(self: *Compilation) void { const gpa = self.gpa; self.work_queue.deinit(); + self.c_object_work_queue.deinit(); { var it = self.crt_files.iterator(); @@ -1202,6 +1203,10 @@ pub fn destroy(self: *Compilation) void { crt_file.deinit(gpa); } + if (self.glibc_so_files) |*glibc_file| { + glibc_file.deinit(gpa); + } + for (self.c_object_table.items()) |entry| { entry.key.destroy(gpa); }