stage2: fix memory leak with exported decl name

master
Andrew Kelley 2020-08-04 01:38:53 -07:00
parent 0d696a48da
commit 7d70774fde
1 changed files with 1 additions and 0 deletions

View File

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