diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 57ea4d945..1ec59fcdc 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5692,7 +5692,10 @@ mch_create_pty_channel(job_T *job, jobopt_T *options) channel = add_channel(); if (channel == NULL) + { + close(pty_master_fd); return FAIL; + } job->jv_channel = channel; /* ch_refcount was set by add_channel() */ channel->ch_keep_open = TRUE; |