From 7d70774fde694b343c90ce8830c269bda23afe84 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 4 Aug 2020 01:38:53 -0700 Subject: [PATCH] stage2: fix memory leak with exported decl name --- src-self-hosted/Module.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src-self-hosted/Module.zig b/src-self-hosted/Module.zig index 5a260c4cd..bda2b3205 100644 --- a/src-self-hosted/Module.zig +++ b/src-self-hosted/Module.zig @@ -896,6 +896,7 @@ pub fn deinit(self: *Module) void { fn freeExportList(gpa: *Allocator, export_list: []*Export) void { for (export_list) |exp| { + gpa.free(exp.options.name); gpa.destroy(exp); } gpa.free(export_list);