summaryrefslogtreecommitdiff
path: root/bfd/som.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-06-08 15:43:38 +0000
committerTristan Gingold <gingold@adacore.com>2010-06-08 15:43:38 +0000
commit2913f886df8edb1a410363b9eb7363d3f79633af (patch)
tree7e69c70cfda0e57e121bd2c66a4da5561a91aa0e /bfd/som.c
parent515f3c53e2ea5987ec24a7afbea32a3c963048a5 (diff)
downloadbinutils-redhat-2913f886df8edb1a410363b9eb7363d3f79633af.tar.gz
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.
Diffstat (limited to 'bfd/som.c')
-rw-r--r--bfd/som.c3
1 files changed, 1 insertions, 2 deletions
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