History

genksyms: close ref_file after use

It is the last place when the file is read, so close it.

Alexander Beregalov committed 16 years ago

Commit c64152b1 parent da60fbb1 file · +3 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/genksyms/genksyms.c+3−1
@@ -758,8 +758,10 @@ int main(int argc, char **argv) · 757 unmodified lines
758758 /* setlinebuf(debugfile); */
759759 }
760760
761− if (flag_reference)
761+ if (flag_reference) {
762762 read_reference(ref_file);
763+ fclose(ref_file);
764+ }
763765
764766 yyparse();
765767