aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-04-20 07:00:46 +0000
committerAlan Modra <amodra@gmail.com>2011-04-20 07:00:46 +0000
commit595213d4408b3608441bb78fd5ee49efb5b8b97f (patch)
tree084ff76cc95b7c3688e18ec93ddd98c2a9a55ea5 /bfd/archive.c
parent02d002477b60cff9f0f5abbd5fc27e2889b13421 (diff)
downloadgdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.zip
gdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.tar.gz
gdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.tar.bz2
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 86d07e9..5de7a3e 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -661,10 +661,6 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
return n_nfd;
- /* Huh? */
- /* FIXME: n_nfd isn't allocated in the archive's memory pool.
- If we reach this point, I think bfd_release will abort. */
- bfd_release (archive, n_nfd);
bfd_release (archive, new_areldata);
return NULL;
}