authorgravatar for timonkruiper@gmail.comTimon Kruiper <timonkruiper@gmail.com> 2021-01-03 16:44:53+01:00
committergravatar for timonkruiper@gmail.comTimon Kruiper <timonkruiper@gmail.com> 2021-01-03 17:39:43+01:00
log7e5aacab69b74de23ce57d2c7f3af0061c3343cf
treea64240f0209b4f4ecc6c18901cd5b0655cb84ca2
parent3c05c60accb534e857e4ad2c1a957d439af184e4

stage2: add some missing deallocations in Compilation.zig


1 files changed, 5 insertions(+), 0 deletions(-)

src/Compilation.zig+5
...@@ -1173,6 +1173,7 @@ pub fn destroy(self: *Compilation) void {...@@ -1173,6 +1173,7 @@ pub fn destroy(self: *Compilation) void {
11731173
1174 const gpa = self.gpa;1174 const gpa = self.gpa;
1175 self.work_queue.deinit();1175 self.work_queue.deinit();
1176 self.c_object_work_queue.deinit();
11761177
1177 {1178 {
1178 var it = self.crt_files.iterator();1179 var it = self.crt_files.iterator();
...@@ -1202,6 +1203,10 @@ pub fn destroy(self: *Compilation) void {...@@ -1202,6 +1203,10 @@ pub fn destroy(self: *Compilation) void {
1202 crt_file.deinit(gpa);1203 crt_file.deinit(gpa);
1203 }1204 }
12041205
1206 if (self.glibc_so_files) |*glibc_file| {
1207 glibc_file.deinit(gpa);
1208 }
1209
1205 for (self.c_object_table.items()) |entry| {1210 for (self.c_object_table.items()) |entry| {
1206 entry.key.destroy(gpa);1211 entry.key.destroy(gpa);
1207 }1212 }