stage2: fix memory leak with exported decl name
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user