mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
stage2: fix memory leak when updating a function
This commit is contained in:
parent
180dae4196
commit
0c6581e01d
@ -2407,6 +2407,7 @@ fn astgenAndSemaFn(
|
||||
if (tvm.typed_value.val.castTag(.function)) |payload| {
|
||||
const prev_func = payload.data;
|
||||
prev_is_inline = prev_func.state == .inline_only;
|
||||
prev_func.deinit(mod.gpa);
|
||||
}
|
||||
|
||||
tvm.deinit(mod.gpa);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user