diff options
-rw-r--r-- | rpt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |