authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-12-15 16:27:16+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-12-15 17:28:48+01:00
log510357355a3ca597daf13fadb6aa8f7df72ea26a
tree45c2b19c2ad38943a4c80372a062dc7af0226b1f
parent4b5f8bca5e8fb13f36850e2581dd7c413a6b1958

stage2: fix premature atom deinit in macho linker


1 files changed, 1 insertions(+), 2 deletions(-)

src/link/MachO.zig+1-2
......@@ -4823,8 +4823,7 @@ fn allocateAtom(self: *MachO, atom: *Atom, new_atom_size: u64, alignment: u64, m
48234823 // should be deleted because the atom that it points to has grown to take up
48244824 // more of the extra capacity.
48254825 if (!big_atom.freeListEligible(self.*)) {
4826 const bl = free_list.swapRemove(i);
4827 bl.deinit(self.base.allocator);
4826 _ = free_list.swapRemove(i);
48284827 } else {
48294828 i += 1;
48304829 }