* dlltool.c (scan_obj_file): Close arfile after calling
bfd_openr_next_archived_file.
This commit is contained in:
parent
0eae2cf456
commit
a442b35f3a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-08-03 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* dlltool.c (scan_obj_file): Close arfile after calling
|
||||||
|
bfd_openr_next_archived_file.
|
||||||
|
|
||||||
2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR binutils/14420
|
PR binutils/14420
|
||||||
|
|
|
@ -1694,10 +1694,12 @@ scan_obj_file (const char *filename)
|
||||||
bfd *arfile = bfd_openr_next_archived_file (f, 0);
|
bfd *arfile = bfd_openr_next_archived_file (f, 0);
|
||||||
while (arfile)
|
while (arfile)
|
||||||
{
|
{
|
||||||
|
bfd *next;
|
||||||
if (bfd_check_format (arfile, bfd_object))
|
if (bfd_check_format (arfile, bfd_object))
|
||||||
scan_open_obj_file (arfile);
|
scan_open_obj_file (arfile);
|
||||||
|
next = bfd_openr_next_archived_file (f, arfile);
|
||||||
bfd_close (arfile);
|
bfd_close (arfile);
|
||||||
arfile = bfd_openr_next_archived_file (f, arfile);
|
arfile = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DLLTOOL_MCORE_ELF
|
#ifdef DLLTOOL_MCORE_ELF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue