coff_close_and_cleanup
authorAlan Modra <amodra@gmail.com>
Sun, 29 Dec 2019 02:25:20 +0000 (12:55 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 29 Dec 2019 10:56:00 +0000 (21:26 +1030)
commitf5d35bb7a5789950efd5f03b270d4c5f774eaba9
tree4e4b63370ff2c7c49a471587238d24a79b38cc83
parenta6e5765ff1c5fdebaf4953eed619a717178cc7e6
coff_close_and_cleanup

Fixes leaks in _bfd_coff_get_external_symbols and
_bfd_coff_read_string_table.

* coffcode.h (coff_close_and_cleanup): Redefine to..
* coffgen.c (_bfd_coff_close_and_cleanup): ..this.  New function.
* libcoff-in.h (_bfd_coff_close_and_cleanup): Declare.
* libcoff.h: Regenerate.
bfd/ChangeLog
bfd/coffcode.h
bfd/coffgen.c
bfd/libcoff-in.h
bfd/libcoff.h