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
index 57ea4d9..1ec59fc 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5692,7 +5692,10 @@
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
index 6be7b82..6a0fa7b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1064,
+/**/
1063,
/**/
1062,