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

Unified · Split

scripts/genksyms/genksyms.c+3−1
@@ -758,8 +758,10 @@ int main(int argc, char **argv) · 757 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t