commit 3c5cd9fdd099dc13e75383fef302e3ef610b439d parent 5f4b42abc730186afe19b889b6526bc244b8669d Author: Daniel Xu <dxu@dxuuu.xyz> Date: Sun, 10 Apr 2022 17:36:19 -0700 Close input file after done reading Leaks resources to not close. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz> Diffstat:
M | main.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c @@ -185,6 +185,7 @@ main(int ac, char *av[]) } } parse(inf, f, data, func); + fclose(inf); } while (++optind < ac); if (!dbg) {