aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r--bfd/opncls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c
index 913341c..b99ae72 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);