PR ld/16028
authorNick Clifton <nickc@redhat.com>
Wed, 9 Oct 2013 16:30:02 +0000 (16:30 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 9 Oct 2013 16:30:02 +0000 (16:30 +0000)
* ldmain.c (add_keepsyms_file): Close file at end of function.

ld/ChangeLog
ld/ldmain.c

index 75f21fd..1b2f88c 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-09  Nick Clifton  <nickc@redhat.com>
+
+       PR ld/16028
+       * ldmain.c (add_keepsyms_file): Close file at end of function.
+
 2013-10-03  Will Newton  <will.newton@linaro.org>
 
        * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
index 6a53667..019df71 100644 (file)
@@ -744,6 +744,7 @@ add_keepsyms_file (const char *filename)
 
   free (buf);
   link_info.strip = strip_some;
+  fclose (file);
 }
 \f
 /* Callbacks from the BFD linker routines.  */