mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
stage2: fix memory leak with exported decl name
This commit is contained in:
parent
0d696a48da
commit
7d70774fde
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user