1
0
Fork 0

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>
hifive-unleashed-5.1
Alexander Beregalov 2010-01-07 05:22:41 +03:00 committed by Michal Marek
parent da60fbbcb6
commit c64152bfd0
1 changed files with 3 additions and 1 deletions

View File

@ -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();