# HG changeset patch # User Christian Brabandt # Date 1504647905 -7200 # Node ID d7f087d1b0e59beed4b23c76730b8a576fe35c92 # Parent 4fe07a0c9b47fb2d9d4969d7b8e3630973465db1 patch 8.0.1064: Coverity warns for leaking resource commit https://github.com/vim/vim/commit/1b9f9d315f137cc883c7aecd39f3df329b7f9085 Author: Bram Moolenaar Date: Tue Sep 5 23:32:38 2017 +0200 patch 8.0.1064: Coverity warns for leaking resource Problem: Coverity warns for leaking resource. Solution: Free pty_master_fd on failure. diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5692,7 +5692,10 @@ mch_create_pty_channel(job_T *job, jobop 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1064, +/**/ 1063, /**/ 1062,