aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-29 12:55:20 +1030
committerAlan Modra <amodra@gmail.com>2019-12-29 21:26:00 +1030
commitf5d35bb7a5789950efd5f03b270d4c5f774eaba9 (patch)
tree4e4b63370ff2c7c49a471587238d24a79b38cc83 /bfd/coffcode.h
parenta6e5765ff1c5fdebaf4953eed619a717178cc7e6 (diff)
downloadgdb-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/coffcode.h')
-rw-r--r--bfd/coffcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ac5312f..7bf7d68 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -5642,7 +5642,7 @@ static bfd_coff_backend_data bigobj_swap_table =
#endif /* COFF_WITH_PE_BIGOBJ */
#ifndef coff_close_and_cleanup
-#define coff_close_and_cleanup _bfd_generic_close_and_cleanup
+#define coff_close_and_cleanup _bfd_coff_close_and_cleanup
#endif
#ifndef coff_bfd_free_cached_info