This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Call _close_and_cleanup in bfd_close_all_done
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Tue, 29 Aug 2017 12:05:31 -0700
- Subject: [PATCH] Call _close_and_cleanup in bfd_close_all_done
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
OK for master?
H.J.
---
PR binutils/22032
* opncls.c (bfd_close_all_done): Call _close_and_cleanup.
---
bfd/opncls.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 913341c9ff..b99ae728c0 100644
--- a/bfd/opncls.c
+++ b/bfd/opncls.c
@@ -776,6 +776,9 @@ bfd_close_all_done (bfd *abfd)
ret = bfd_cache_close (abfd);
+ if (! BFD_SEND (abfd, _close_and_cleanup, (abfd)))
+ return FALSE;
+
if (ret)
_maybe_make_executable (abfd);
--
2.13.5