diff options
| author | Daniel Xu <[email protected]> | 2022-04-10 17:36:19 -0700 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2022-04-11 14:39:01 +0200 |
| commit | 3c5cd9fdd099dc13e75383fef302e3ef610b439d (patch) | |
| tree | 3fa23b958661d71f07968f58103e150eeddbc6cb /main.c | |
| parent | 5f4b42abc730186afe19b889b6526bc244b8669d (diff) | |
Close input file after done reading
Leaks resources to not close.
Signed-off-by: Daniel Xu <[email protected]>
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -185,6 +185,7 @@ main(int ac, char *av[]) } } parse(inf, f, data, func); + fclose(inf); } while (++optind < ac); if (!dbg) { |
