aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);