mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: add some missing deallocations in Compilation.zig
This commit is contained in:
parent
3c05c60acc
commit
7e5aacab69
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user