diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-29 12:55:20 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-29 21:26:00 +1030 |
commit | f5d35bb7a5789950efd5f03b270d4c5f774eaba9 (patch) | |
tree | 4e4b63370ff2c7c49a471587238d24a79b38cc83 /bfd/libcoff-in.h | |
parent | a6e5765ff1c5fdebaf4953eed619a717178cc7e6 (diff) | |
download | gdb-f5d35bb7a5789950efd5f03b270d4c5f774eaba9.zip gdb-f5d35bb7a5789950efd5f03b270d4c5f774eaba9.tar.gz gdb-f5d35bb7a5789950efd5f03b270d4c5f774eaba9.tar.bz2 |
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.
Diffstat (limited to 'bfd/libcoff-in.h')
-rw-r--r-- | bfd/libcoff-in.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h index 031622f..a4623dd 100644 --- a/bfd/libcoff-in.h +++ b/bfd/libcoff-in.h @@ -367,6 +367,8 @@ extern bfd_vma bfd_coff_reloc16_get_value (arelent *, struct bfd_link_info *, asection *); extern void bfd_perform_slip (bfd *, unsigned int, asection *, bfd_vma); +extern bfd_boolean _bfd_coff_close_and_cleanup + (bfd *); /* Functions and types in cofflink.c. */ |