diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-04-20 07:00:44 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-04-20 07:00:44 +0000 |
commit | e0c38aa8a069ac3367bc3531055ad0c508bac518 (patch) | |
tree | e7699b02e641223a31640d3f17cf0c8beda358c1 /bfd/archive.c | |
parent | 33240c08520befe8483f59d93a0629f282617798 (diff) | |
download | binutils-redhat-e0c38aa8a069ac3367bc3531055ad0c508bac518.tar.gz |
* 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.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/archive.c b/bfd/archive.c index 86d07e9f4a..5de7a3e656 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; } |