From: Alexander Beregalov Date: Thu, 7 Jan 2010 02:22:41 +0000 (+0300) Subject: genksyms: close ref_file after use X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c64152bfd0106807c8d3ddbe6d0928e14a64f7bb;p=linux-beck.git genksyms: close ref_file after use It is the last place when the file is read, so close it. Signed-off-by: Alexander Beregalov Signed-off-by: Michal Marek --- 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();