aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-10-09 16:30:02 +0000
committerNick Clifton <nickc@redhat.com>2013-10-09 16:30:02 +0000
commitd9313f4f43f9bb23fb1ef3a93c4879c706d5e881 (patch)
tree90d3b7e705bd607d0a6f5084f9ca957040df81f0 /ld/ldmain.c
parentb707aa49bf948b3e66734441525c215a7a5ba78a (diff)
downloadgdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.zip
gdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.tar.gz
gdb-d9313f4f43f9bb23fb1ef3a93c4879c706d5e881.tar.bz2
PR ld/16028
* ldmain.c (add_keepsyms_file): Close file at end of function.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
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. */