Patch 8.2.4084
Problem: Memory leak when looking for autoload prefixed variable.
Solution: Free the concatenated string.
Files: src/evalvars.c
*** ../vim-8.2.4083/src/evalvars.c 2022-01-13 20:18:52.704340964 +0000
--- src/evalvars.c 2022-01-13 20:38:08.806169511 +0000
***************
*** 2889,2894 ****
--- 2889,2895 ----
{
ht = &globvarht;
ret = find_var_in_ht(ht, *name, auto_name, TRUE);
+ vim_free(auto_name);
if (ret != NULL)
{
if (htp != NULL)
***************
*** 2896,2902 ****
return ret;
}
}
- vim_free(auto_name);
}
}
--- 2897,2902 ----
*** ../vim-8.2.4083/src/version.c 2022-01-13 20:18:52.704340964 +0000
--- src/version.c 2022-01-13 20:39:14.834065782 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4084,
/**/
--
Yah, well, we had to carve our electrons out of driftwood we'd
find. In the winter. Uphill. Both ways.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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 on the web visit
https://groups.google.com/d/msgid/vim_dev/20220113204032.7E30C1C226C%40moolenaar.net.