mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user