Close input file after done reading
Leaks resources to not close. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
This commit is contained in:
parent
5f4b42abc7
commit
3c5cd9fdd0
1 changed files with 1 additions and 0 deletions
1
main.c
1
main.c
|
@ -185,6 +185,7 @@ main(int ac, char *av[])
|
|||
}
|
||||
}
|
||||
parse(inf, f, data, func);
|
||||
fclose(inf);
|
||||
} while (++optind < ac);
|
||||
|
||||
if (!dbg) {
|
||||
|
|
Loading…
Add table
Reference in a new issue