Skip to content

Commit c64152b

Browse files
alexb0michal42
authored andcommitted
genksyms: close ref_file after use
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>
1 parent da60fbb commit c64152b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/genksyms/genksyms.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,10 @@ int main(int argc, char **argv)
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

0 commit comments

Comments
 (0)