(dump_file): Call fclose() for opened files.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Oct 1996 15:37:57 +0000 (11:37 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Oct 1996 15:37:57 +0000 (11:37 -0400)
From-SVN: r13033

gcc/collect2.c

index cd6f8f43d39f8b9859a53c26079e88e6b7e1c8fd..452ac9943ef4624b3e83fdd657abd28409a18d72 100644 (file)
@@ -1,7 +1,5 @@
-/* Collect static initialization info into data structures
-   that can be traversed by C++ initialization and finalization
-   routines.
-
+/* Collect static initialization info into data structures that can be
+   traversed by C++ initialization and finalization routines.
    Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
    Contributed by Chris Smith (csmith@convex.com).
    Heavily modified by Michael Meissner (meissner@cygnus.com),
@@ -551,6 +549,7 @@ dump_file (name)
        break;
       putc (c, stderr);
     }
+  fclose (stream);
 }
 \f
 /* Decide whether the given symbol is: