diff options
author | Alan Modra <amodra@gmail.com> | 2023-01-27 12:31:27 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-27 15:46:20 +1030 |
commit | 3e7cde4dca8c63b8091597bd7800f0f71e822395 (patch) | |
tree | 528bb3d3d50e0962bb09f073f8b70b88a831b97d /gas | |
parent | c026360c7578b4599c289987981d9c9c80481e40 (diff) | |
download | gdb-3e7cde4dca8c63b8091597bd7800f0f71e822395.zip gdb-3e7cde4dca8c63b8091597bd7800f0f71e822395.tar.gz gdb-3e7cde4dca8c63b8091597bd7800f0f71e822395.tar.bz2 |
Call bfd_close_all_done in output_file_close
bfd_cache_close_all is good for closing file descriptors, but doesn't
do the cleanup of bfd memory as in bfd_close_all_done.
PR 13056
* output-file.c (output_file_close): Call bfd_close_all_done,
not bfd_cache_close_all.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/output-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/output-file.c b/gas/output-file.c index 4c97e8f..88f4011 100644 --- a/gas/output-file.c +++ b/gas/output-file.c @@ -96,7 +96,7 @@ output_file_close (void) /* Close the bfd. */ if (!flag_always_generate_output && had_errors ()) - res = bfd_cache_close_all (); + res = bfd_close_all_done (obfd); else res = bfd_close (obfd); now_seg = NULL; |