summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filelist.c b/src/filelist.c
index 223956d..f1e820c 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -180,6 +180,7 @@ static void add_stdin_to_filelist(void)
while ((readsize = fread(buf, sizeof(char), sizeof(buf), stdin)) > 0) {
if (fwrite(buf, sizeof(char), readsize, outfile) < readsize) {
free(sfn);
+ fclose(outfile);
return;
}
}