From 5235e82f6210895a64b0bf263dda9488aeb2eb9f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 31 Oct 2024 12:05:52 +0100 Subject: Be a good citizen and cleanup properly --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index cc001af..e83f615 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- cgit v1.2.3