aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-31 12:05:52 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-31 12:05:52 +0100
commit5235e82f6210895a64b0bf263dda9488aeb2eb9f (patch)
treef627c69dc2505f5fa84520ef800d90f163265057 /src
parent48801bec1ef80a97c14ec2c9974300a3e2a7eb21 (diff)
Be a good citizen and cleanup properly
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
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);