mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00:00
stage2: fix premature atom deinit in macho linker
This commit is contained in:
parent
4b5f8bca5e
commit
510357355a
@ -4823,8 +4823,7 @@ fn allocateAtom(self: *MachO, atom: *Atom, new_atom_size: u64, alignment: u64, m
|
|||||||
// should be deleted because the atom that it points to has grown to take up
|
// should be deleted because the atom that it points to has grown to take up
|
||||||
// more of the extra capacity.
|
// more of the extra capacity.
|
||||||
if (!big_atom.freeListEligible(self.*)) {
|
if (!big_atom.freeListEligible(self.*)) {
|
||||||
const bl = free_list.swapRemove(i);
|
_ = free_list.swapRemove(i);
|
||||||
bl.deinit(self.base.allocator);
|
|
||||||
} else {
|
} else {
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user