* tlink.c (scan_linker_output): Call fclose() for opened files.

From-SVN: r17504
This commit is contained in:
Kamil Iskra 1998-01-27 10:23:08 +01:00 committed by Jeff Law
parent 6059379729
commit 7b6ffd1189
2 changed files with 9 additions and 1 deletions

View 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

View 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);
}