2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 17:22:40 +0000 (17:22 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 5 May 2005 17:22:40 +0000 (17:22 +0000)
* elf.c (_bfd_elf_close_and_cleanup): Only call
_bfd_dwarf2_cleanup_debug_info on bfd_object.

bfd/ChangeLog
bfd/elf.c

index a1c9e8c1af2343033e89ffb99b445aefef181e78..4430b5c2eff41ff0df5374be9ac3a6eab0acd5dd 100644 (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
        (_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>
index 6ba2cb86f4906eb044a7ff5bd709d2eedbd2a22f..7f402c3cb32cec9a058192c1ee2451ceab7d417c 100644 (file)
--- 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);
 }
 
This page took 0.042909 seconds and 4 git commands to generate.