Fix memory leak
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user