forked from Imagelibrary/binutils-gdb
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user