OSDN Git Service

* tlink.c (scan_linker_output): Call fclose() for opened files.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 1998 09:23:08 +0000 (09:23 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jan 1998 09:23:08 +0000 (09:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17504 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tlink.c

index ba970d5..545ac81 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 27 10:22:13 1998  Kamil Iskra  <iskra@student.uci.agh.edu.pl>
+
+       * tlink.c (scan_linker_output): Call fclose() for opened files.
+
 Tue Jan 27 05:05:26 1998  Richard Henderson  <rth@cygnus.com>
 
        * alpha.c (output_epilog [!VMS]): Don't tag global functions if
index 017ac42..eb3d878 100644 (file)
@@ -575,7 +575,10 @@ scan_linker_output (fname)
        }
 
       if (sym && sym->tweaked)
-       return 0;
+       {
+         fclose (stream);
+         return 0;
+       }
       if (sym && !sym->tweaking)
        {
          if (tlink_verbose >= 2)
@@ -588,6 +591,7 @@ scan_linker_output (fname)
       obstack_free (&temporary_obstack, temporary_firstobj);
     }
 
+  fclose (stream);
   return (file_stack != NULL);
 }