diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 12:05:52 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-31 12:05:52 +0100 |
commit | 5235e82f6210895a64b0bf263dda9488aeb2eb9f (patch) | |
tree | f627c69dc2505f5fa84520ef800d90f163265057 | |
parent | 48801bec1ef80a97c14ec2c9974300a3e2a7eb21 (diff) |
Be a good citizen and cleanup properly
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -169,6 +169,8 @@ main(int argc, char **argv) } if (ferror(fstream)) cerr(EXIT_FATAL, "getdelim:"); + + (void)fclose(fstream); #else if (argc == 1) argv = (static char *[]){"-"}; @@ -211,6 +213,7 @@ main(int argc, char **argv) } array_free(ops); #if GIT_GRAB + free(file); array_foreach (filenames, f) free((void *)*f); array_free(filenames); |