patch 9.2.0105: memory leak in heredoc_get() in src/evalvars.c
Commit:
https://github.com/vim/vim/commit/7d1e0a783247598f6689b920b8a698df02bca382
Author: Huihui Huang <[email protected]>
Date: Tue Mar 3 20:35:48 2026 +0000
patch 9.2.0105: memory leak in heredoc_get() in src/evalvars.c
Problem: memory leak in heredoc_get() in src/evalvars.c
Solution: Free variable l on early return (Huihui Huang).
closes: #19563
Signed-off-by: Huihui Huang <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/evalvars.c b/src/evalvars.c
index 7cdef3f5c..16dcb0282 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -949,6 +949,7 @@ heredoc_get(exarg_T *eap, char_u *cmd, int script_get, int
vim9compile)
{
vim_free(theline);
vim_free(text_indent);
+ list_free(l);
return FAIL;
}
count++;
diff --git a/src/version.c b/src/version.c
index 4ad24ed11..6e93333a3 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 */
+/**/
+ 105,
/**/
104,
/**/
--
--
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/E1vxWc4-005I7o-OH%40256bit.org.