diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-06-08 15:43:38 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-06-08 15:43:38 +0000 |
commit | 7da73d69b0c630cf527454e23431747010746393 (patch) | |
tree | 83491730e7cfe574073af46a7eba9102af4f7ee3 | |
parent | 09137c09f4e188e3a8d925d8f22c074a3f625693 (diff) | |
download | gdb-7da73d69b0c630cf527454e23431747010746393.zip gdb-7da73d69b0c630cf527454e23431747010746393.tar.gz gdb-7da73d69b0c630cf527454e23431747010746393.tar.bz2 |
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.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/som.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b979b93..6c4e8ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 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 for the first block. @@ -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 |