From: Richard Sandiford Date: Mon, 11 Feb 2013 17:21:31 +0000 (+0000) Subject: bfd/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9efeb38dd1806d9c18b31baf594de95249f59319;p=binutils-gdb.git bfd/ * elfxx-mips.c (mips_elf_recreate_got): Remove free. (mips_elf_resolve_final_got_entries): Remove bogus comment. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 44ff6512076..79c410227af 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-02-11 Richard Sandiford + + * elfxx-mips.c (mips_elf_recreate_got): Remove free. + (mips_elf_resolve_final_got_entries): Remove bogus comment. + 2013-02-10 Alan Modra * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index b281971bc53..9a92e2dd2cb 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -4002,8 +4002,6 @@ mips_elf_recreate_got (void **entryp, void *data) } if (*slot == NULL) *slot = entry; - else - free (entry); return 1; } @@ -4027,8 +4025,6 @@ mips_elf_resolve_final_got_entries (struct mips_got_info *g) if (new_got == NULL) return FALSE; - /* Each entry in g->got_entries has either been copied to new_got - or freed. Now delete the hash table itself. */ htab_delete (g->got_entries); g->got_entries = new_got; }