2010-06-08 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 8 Jun 2010 15:43:38 +0000 (15:43 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 8 Jun 2010 15:43:38 +0000 (15:43 +0000)
* som.c (som_bfd_free_cached_info): Do not free relocations as
they were allocated with bfd_zalloc.

bfd/ChangeLog
bfd/som.c

index b979b93d00515533ecf33fbcb311171aa868e206..6c4e8ca9b23c1b57f65997fa58fb805ab2d6fa36 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-08  Tristan Gingold  <gingold@adacore.com>
+
+       * som.c (som_bfd_free_cached_info): Do not free relocations as
+       they were allocated with bfd_zalloc.
+
 2010-06-08  Tristan Gingold  <gingold@adacore.com>
 
        * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
index fbdc2b4cc9daf928824d68c9fa392bcc7672a58d..c793cb9b4960b1cd79db8590d7ee99409c466392 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -6304,8 +6304,7 @@ som_bfd_free_cached_info (bfd *abfd)
       /* Free the native relocations.  */
       o->reloc_count = (unsigned) -1;
       FREE (som_section_data (o)->reloc_stream);
-      /* Free the generic relocations.  */
-      FREE (o->relocation);
+      /* Do not free the generic relocations as they are objalloc'ed.  */
     }
 #undef FREE
 
This page took 0.027461 seconds and 4 git commands to generate.