Fix memory leak

This commit is contained in:
Noam Preil
2020-11-18 20:50:12 -05:00
committed by Alex Cameron
parent c87da2f45a
commit 15a148db01

View File

@@ -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();