patch 9.2.0079: memory leak in eval_dict()
Commit:
https://github.com/vim/vim/commit/525d1d6a94de7c54fc30dc04ee630fef572702ef
Author: Huihui Huang <
625...@qq.com>
Date: Sat Feb 28 17:01:53 2026 +0000
patch 9.2.0079: memory leak in eval_dict()
Problem: memory leak in eval_dict()
Solution: Do not return but goto failret (Huihui Huang).
closes: #19531
Signed-off-by: Huihui Huang <
625...@qq.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/dict.c b/src/dict.c
index 85e451ec7..2b3ef8897 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -994,7 +994,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
{
emsg(_(e_missing_matching_bracket_after_dict_key));
clear_tv(&tvkey);
- return FAIL;
+ goto failret;
}
++*arg;
}
diff --git a/src/version.c b/src/version.c
index 7abc134fc..51b853a2b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 79,
/**/
78,
/**/