aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index ab9d757..fa83495 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4231,3 +4231,12 @@ _bfd_elf_validate_reloc (abfd, areloc)
bfd_set_error (bfd_error_bad_value);
return false;
}
+
+boolean
+_bfd_elf_close_and_cleanup (abfd)
+ bfd *abfd;
+{
+ if (elf_shstrtab (abfd))
+ _bfd_stringtab_free (elf_shstrtab (abfd));
+ return _bfd_generic_close_and_cleanup (abfd);
+}