Commit 15a148db01

Noam Preil <noam@pixelhero.dev>
2020-11-19 02:50:12
Fix memory leak
1 parent c87da2f
Changed files (1)
src/Compilation.zig
@@ -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();