# HG changeset patch # User Christian Brabandt # Date 1469218505 -7200 # Node ID fefd0551aa9df391596bd60efac4e965c8984fa0 # Parent 8eef9ebbb02126a45dc2c0950764d01f2b481643 commit https://github.com/vim/vim/commit/2e45d21c819272051f7ef4436f483e4b2ecfb369 Author: Bram Moolenaar Date: Fri Jul 22 22:12:38 2016 +0200 patch 7.4.2091 Problem: Coverity reports a resource leak when out of memory. Solution: Close the file before returning. diff --git a/src/term.c b/src/term.c --- a/src/term.c +++ b/src/term.c @@ -6197,7 +6197,10 @@ gui_get_color_cmn(char_u *name) char_u *s = vim_strsave((char_u *)line + pos); if (s == NULL) + { + fclose(fd); return INVALCOLOR; + } colornames_table[size].color_name = s; colornames_table[size].color = (guicolor_T)RGB(r, g, b); } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -759,6 +759,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2091, +/**/ 2090, /**/ 2089,