diff options
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r-- | bfd/opncls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index 0c02ee4..e538981 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -130,11 +130,15 @@ _bfd_new_bfd_contained_in (bfd *obfd) static void _bfd_delete_bfd (bfd *abfd) { + if (abfd->format == bfd_archive) + _bfd_delete_archive_data (abfd); + if (abfd->memory) { bfd_hash_table_free (&abfd->section_htab); objalloc_free ((struct objalloc *) abfd->memory); } + free (abfd); } |