2005-05-05 H.J. Lu <hongjiu.lu@intel.com>

* elf.c (_bfd_elf_close_and_cleanup): Only call
	_bfd_dwarf2_cleanup_debug_info on bfd_object.
This commit is contained in:
H.J. Lu 2005-05-05 17:22:40 +00:00
parent 01d9ad14d4
commit 6f140a15a3
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
* elf.c (_bfd_elf_close_and_cleanup): Only call
_bfd_dwarf2_cleanup_debug_info on bfd_object.
2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_provide_section_bound_symbols): Use
@ -145,7 +150,7 @@
(_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
allocated by functions in this file.
* elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
* elf.c (bfd_elf_close_and_cleanup): Call
* elf.c (_bfd_elf_close_and_cleanup): Call
_bfd_dwarf2_cleanup_debug_info.
2005-05-05 Hans-Peter Nilsson <hp@axis.com>

View File

@ -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);
}