ld compact eh-frame leak u.compact.extries wasn't being freed anywhere. Free it when destroying the linker hash table. Also free u.dwarf.aray there in case errors result in the linker not getting to the slightly earlier free in write_dwarf_eh_frame_hdr. * elf-eh-frame.c (write_dwarf_eh_frame_hdr): Don't exit without freeing u.dwarf.array. * elflink.c (_bfd_elf_link_hash_table_free): Free u.compact.entries and u.dwarf.array.