diff options
-rw-r--r-- | os/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/utils.c b/os/utils.c index f47177f4f..36cb46f11 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1315,6 +1315,9 @@ Popen(char *command, char *type) /* Ignore the smart scheduler while this is going on */ old_alarm = OsSignal(SIGALRM, SIG_IGN); if (old_alarm == SIG_ERR) { + close(pdes[0]); + close(pdes[1]); + free(cur); perror("signal"); return NULL; } |