genksyms: close ref_file after use
PATCH 1/1 genksyms: close ref_file after use
It is the last place when the file is read, so close it.
Signed-off-by Alexander Beregalov <[email protected]>
--- scripts/genksyms/genksyms.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
scripts/genksyms/genksyms.c +3 -1
@@ -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 ();
Signature · 1 line
1.6.6
Michal Marek
AppliedQuoted 3 lines · Alexander Beregalov
It is the last place when the file is read, so close it.
Signed-off-by Alexander Beregalov <[email protected]>
Applied, thanks.
Michal