mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 07:33:08 +00:00
Sema: Fix memory leak
This commit is contained in:
parent
fd1284ebd0
commit
545aa790a4
@ -7058,6 +7058,7 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError
|
||||
sema.air_extra.appendSliceAssumeCapacity(prev_then_body);
|
||||
sema.air_extra.appendSliceAssumeCapacity(cond_body);
|
||||
}
|
||||
gpa.free(prev_then_body);
|
||||
prev_then_body = case_block.instructions.toOwnedSlice(gpa);
|
||||
prev_cond_br = new_cond_br;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user