From: Christian Brabandt Date: Tue, 23 Jun 2026 20:16:49 +0000 (+0000) Subject: patch 9.2.0711: leak in ins_compl_infercase_gettext() in error case X-Git-Tag: v9.2.0711^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3680c6fa93b6bb2c96ae536f56c56750477cfc;p=thirdparty%2Fvim.git patch 9.2.0711: leak in ins_compl_infercase_gettext() in error case Problem: leak in ins_compl_infercase_gettext() in error case (Cheng) Solution: free wca before returning. closes: #20607 Signed-off-by: Christian Brabandt --- diff --git a/src/insexpand.c b/src/insexpand.c index c7186b9297..3b20d2a3c7 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -699,6 +699,7 @@ ins_compl_infercase_gettext( if (ga_grow(&gap, 10) == FAIL) { ga_clear(&gap); + vim_free(wca); return (char_u *)"[failed]"; } p = (char_u *)gap.ga_data + gap.ga_len; diff --git a/src/version.c b/src/version.c index 7433593c77..c3ae1b07d9 100644 --- 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 */ +/**/ + 711, /**/ 710, /**/