From d9313f4f43f9bb23fb1ef3a93c4879c706d5e881 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 9 Oct 2013 16:30:02 +0000 Subject: PR ld/16028 * ldmain.c (add_keepsyms_file): Close file at end of function. --- ld/ChangeLog | 5 +++++ ld/ldmain.c | 1 + 2 files changed, 6 insertions(+) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index 75f21fd..1b2f88c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2013-10-09 Nick Clifton + + PR ld/16028 + * ldmain.c (add_keepsyms_file): Close file at end of function. + 2013-10-03 Will Newton * emulparams/aarch64elf.sh: Add IREL_IN_PLT. diff --git a/ld/ldmain.c b/ld/ldmain.c index 6a53667..019df71 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -744,6 +744,7 @@ add_keepsyms_file (const char *filename) free (buf); link_info.strip = strip_some; + fclose (file); } /* Callbacks from the BFD linker routines. */ -- cgit v1.1