link: fix memory leak of system_libs

This commit is contained in:
Andrew Kelley
2021-05-13 20:08:17 -07:00
parent edab03bc22
commit a854795f52

View File

@@ -352,6 +352,7 @@ pub const File = struct {
base.releaseLock();
if (base.file) |f| f.close();
if (base.intermediary_basename) |sub_path| base.allocator.free(sub_path);
base.options.system_libs.deinit(base.allocator);
switch (base.tag) {
.coff => {
const parent = @fieldParentPtr(Coff, "base", base);