genksyms: close ref_file after use
Alexander Beregalov [Thu, 7 Jan 2010 02:22:41 +0000 (05:22 +0300)]
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>

scripts/genksyms/genksyms.c

index af6b836..f99115e 100644 (file)
@@ -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();