commit | 049467c758efe4460220f045205dc61fb69ef5ef | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Sat Jan 11 15:56:45 2025 +1030 |
committer | Alan Modra <amodra@gmail.com> | Wed Jan 15 22:37:16 2025 +1030 |
tree | 666360293b493eac85b6f262618fa88527067dc5 | |
parent | 8c0361c7bb74911244364c7ee13db97275ea1c8d [diff] |
Free symtab_hdr.contents and a cache_size correction symtab_hdr.contents looks to be malloc'd memory, except in one case. Change that one case to also be malloc'd and free when we are done. * elf.c (swap_out_syms): bfd_malloc outbound_syms. (_bfd_elf_free_cached_info): Free symtab_hdr.contents. * elflink.c (init_reloc_cookie): Correct cache_size. locsyms is an array of Elf_Internal_Sym.