summaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2013-02-11 17:21:30 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2013-02-11 17:21:30 +0000
commitfeb1a67662c58fd953b1d82051a153c9674f7ae1 (patch)
treedc6bfaabe9ae5bb8162f425201d5afe793833c15 /bfd/elfxx-mips.c
parent84ad5f0d91872bef004b3c174365150841c71822 (diff)
downloadbinutils-redhat-feb1a67662c58fd953b1d82051a153c9674f7ae1.tar.gz
bfd/
* elfxx-mips.c (mips_elf_recreate_got): Remove free. (mips_elf_resolve_final_got_entries): Remove bogus comment.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r--bfd/elfxx-mips.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index b281971bc5..9a92e2dd2c 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;
}