summaryrefslogtreecommitdiffstats
path: root/scripts/genksyms/genksyms.c
diff options
context:
space:
mode:
authorAlexander Beregalov <a.beregalov@gmail.com>2010-01-07 03:22:41 +0100
committerMichal Marek <mmarek@suse.cz>2010-02-02 14:33:55 +0100
commitc64152bfd0106807c8d3ddbe6d0928e14a64f7bb (patch)
tree6333763a321d02ab6ecedadabcde953b7117e4eb /scripts/genksyms/genksyms.c
parentmenuconfig: wrap long help lines (diff)
downloadlinux-c64152bfd0106807c8d3ddbe6d0928e14a64f7bb.tar.xz
linux-c64152bfd0106807c8d3ddbe6d0928e14a64f7bb.zip
genksyms: close ref_file after use
It is the last place when the file is read, so close it. Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/genksyms/genksyms.c')
-rw-r--r--scripts/genksyms/genksyms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index af6b8363a2d5..f99115ebe925 100644
--- a/scripts/genksyms/genksyms.c
+++ b/scripts/genksyms/genksyms.c
@@ -758,8 +758,10 @@ int main(int argc, char **argv)
/* setlinebuf(debugfile); */
}
- if (flag_reference)
+ if (flag_reference) {
read_reference(ref_file);
+ fclose(ref_file);
+ }
yyparse();