mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Fix memory leak
This commit is contained in:
parent
c87da2f45a
commit
15a148db01
@ -1184,6 +1184,10 @@ pub fn destroy(self: *Compilation) void {
|
||||
}
|
||||
self.failed_c_objects.deinit(gpa);
|
||||
|
||||
if (self.c_header) |*header| {
|
||||
header.deinit();
|
||||
}
|
||||
|
||||
self.cache_parent.manifest_dir.close();
|
||||
if (self.owned_link_dir) |*dir| dir.close();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user