Skip to content

Commit

Permalink
genksyms: close ref_file after use
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Beregalov authored and Michal Marek committed Feb 2, 2010
1 parent da60fbb commit c64152b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/genksyms/genksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit c64152b

Please sign in to comment.