patch 9.2.0079: memory leak in eval_dict()
Commit:
https://github.com/vim/vim/commit/525d1d6a94de7c54fc30dc04ee630fef572702ef
Author: Huihui Huang <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vwNuD-0000lU-0K%40256bit.org.