aboutsummaryrefslogtreecommitdiff
path: root/rpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpt.c')
-rw-r--r--rpt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpt.c b/rpt.c
index 780257d..d953e6f 100644
--- a/rpt.c
+++ b/rpt.c
@@ -54,6 +54,10 @@ exit_on_error(int status)
fprintf(stderr, "rpt: child process exited with status %d, aborting\n",
status);
+
+ if (stdin_clone)
+ fclose(stdin_clone);
+
exit(status);
}