From: Tristan Gingold Date: Tue, 8 Jun 2010 15:43:38 +0000 (+0000) Subject: 2010-06-08 Tristan Gingold X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7da73d69b0c630cf527454e23431747010746393;hp=09137c09f4e188e3a8d925d8f22c074a3f625693;p=deliverable%2Fbinutils-gdb.git 2010-06-08 Tristan Gingold * som.c (som_bfd_free_cached_info): Do not free relocations as they were allocated with bfd_zalloc. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b979b93d00..6c4e8ca9b2 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-06-08 Tristan Gingold + + * som.c (som_bfd_free_cached_info): Do not free relocations as + they were allocated with bfd_zalloc. + 2010-06-08 Tristan Gingold * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment diff --git a/bfd/som.c b/bfd/som.c index fbdc2b4cc9..c793cb9b49 100644 --- 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