Free ecoff debug info
authorAlan Modra <amodra@gmail.com>
Mon, 27 Feb 2023 11:31:08 +0000 (22:01 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Feb 2023 00:07:12 +0000 (10:37 +1030)
commit3a850a365aa2578830dd9ce0c8e3421c586da86f
tree39a537b5c47b908aaa6985f3dea6ff518020a020
parentf6389c5a793648f1b12cc791b8957cf6d1752222
Free ecoff debug info

This frees memory associated with the mips ecoff find_nearest_line.

* elfxx-mips.x (free_ecoff_debug): New function, extracted from..
(_bfd_mips_elf_read_ecoff_info): ..here.  Free ext_hdr earlier.
Don't clear already NULL fdr.
(struct mips_elf_find_line): Move earlier.
(_bfd_mips_elf_close_and_cleanup): Call free_ecoff_debug.
(_bfd_mips_elf_find_nearest_line): Likewise on error paths,
and to clean up input_debug when done.
bfd/elfxx-mips.c