patch 9.2.0711: leak in ins_compl_infercase_gettext() in error case
Commit:
https://github.com/vim/vim/commit/fa3680c6fa93b6bb2c96ae536f56c56750477cfc
Author: Christian Brabandt <
c...@256bit.org>
Date: Tue Jun 23 20:16:49 2026 +0000
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 <
c...@256bit.org>
diff --git a/src/insexpand.c b/src/insexpand.c
index c7186b929..3b20d2a3c 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 7433593c7..c3ae1b07d 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,
/**/