diff options
-rw-r--r-- | scripts/genksyms/genksyms.c | 4 |
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) | |||
758 | /* setlinebuf(debugfile); */ | 758 | /* setlinebuf(debugfile); */ |
759 | } | 759 | } |
760 | 760 | ||
761 | if (flag_reference) | 761 | if (flag_reference) { |
762 | read_reference(ref_file); | 762 | read_reference(ref_file); |
763 | fclose(ref_file); | ||
764 | } | ||
763 | 765 | ||
764 | yyparse(); | 766 | yyparse(); |
765 | 767 | ||