stage2: fix memory leak with exported decl name
parent
0d696a48da
commit
7d70774fde
|
@ -896,6 +896,7 @@ pub fn deinit(self: *Module) void {
|
||||||
|
|
||||||
fn freeExportList(gpa: *Allocator, export_list: []*Export) void {
|
fn freeExportList(gpa: *Allocator, export_list: []*Export) void {
|
||||||
for (export_list) |exp| {
|
for (export_list) |exp| {
|
||||||
|
gpa.free(exp.options.name);
|
||||||
gpa.destroy(exp);
|
gpa.destroy(exp);
|
||||||
}
|
}
|
||||||
gpa.free(export_list);
|
gpa.free(export_list);
|
||||||
|
|
Loading…
Reference in New Issue