Patch 8.2.4084

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 13, 2022, 3:40:38 PM1/13/22
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages