* dlltool.c (scan_obj_file): Close arfile after calling
authorTom Tromey <tromey@redhat.com>
Fri, 3 Aug 2012 16:33:04 +0000 (16:33 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 3 Aug 2012 16:33:04 +0000 (16:33 +0000)
bfd_openr_next_archived_file.

binutils/ChangeLog
binutils/dlltool.c

index 7594bcb26eef6b7f646f5ceba7316868da2d1464..9141b86d654e4b89819f3a34cbea6389d8ea460c 100644 (file)
@@ -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>
 
        PR binutils/14420
index 6ed0f7a39b496105b61327e51b76bfa7c66e9967..8d458d764674aa3184c4066c51d36f1e5b90632e 100644 (file)
@@ -1694,10 +1694,12 @@ scan_obj_file (const char *filename)
       bfd *arfile = bfd_openr_next_archived_file (f, 0);
       while (arfile)
        {
+         bfd *next;
          if (bfd_check_format (arfile, bfd_object))
            scan_open_obj_file (arfile);
+         next = bfd_openr_next_archived_file (f, arfile);
          bfd_close (arfile);
-         arfile = bfd_openr_next_archived_file (f, arfile);
+         arfile = next;
        }
 
 #ifdef DLLTOOL_MCORE_ELF
This page took 0.031678 seconds and 4 git commands to generate.