aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 6ba2cb8..7f402c3 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6683,10 +6683,9 @@ _bfd_elf_close_and_cleanup (bfd *abfd)
{
if (elf_shstrtab (abfd) != NULL)
_bfd_elf_strtab_free (elf_shstrtab (abfd));
+ _bfd_dwarf2_cleanup_debug_info (abfd);
}
- _bfd_dwarf2_cleanup_debug_info (abfd);
-
return _bfd_generic_close_and_cleanup (abfd);
}