From 510357355a3ca597daf13fadb6aa8f7df72ea26a Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 15 Dec 2021 16:27:16 +0100 Subject: [PATCH] stage2: fix premature atom deinit in macho linker --- src/link/MachO.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/link/MachO.zig b/src/link/MachO.zig index d7457ec549..efc1330597 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -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 // more of the extra capacity. if (!big_atom.freeListEligible(self.*)) { - const bl = free_list.swapRemove(i); - bl.deinit(self.base.allocator); + _ = free_list.swapRemove(i); } else { i += 1; }