Commit a854795f52

Andrew Kelley <andrew@ziglang.org>
2021-05-14 05:08:17
link: fix memory leak of system_libs
1 parent edab03b
Changed files (1)
src/link.zig
@@ -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);