Patch 8.2.4652

6 views
Skip to first unread message

Bram Moolenaar

unread,
Mar 31, 2022, 5:14:23 AM3/31/22
to vim...@googlegroups.com

Patch 8.2.4652 (after 8.2.4650)
Problem: Leaking memory if assignment fails.
Solution: Clear assigned value on failure.
Files: src/vim9execute.c


*** ../vim-8.2.4651/src/vim9execute.c 2022-03-30 21:12:16.451923056 +0100
--- src/vim9execute.c 2022-03-31 09:50:10.438040036 +0100
***************
*** 3098,3103 ****
--- 3098,3104 ----
if (iptr->isn_type == ISN_STOREEXPORT)
{
semsg(_(e_undefined_variable_str), name);
+ clear_tv(STACK_TV_BOT(0));
goto on_error;
}
store_var(name, STACK_TV_BOT(0));
***************
*** 3118,3123 ****
--- 3119,3125 ----
{
semsg(_(e_item_not_exported_in_script_str),
name);
+ clear_tv(STACK_TV_BOT(0));
goto on_error;
}
}
*** ../vim-8.2.4651/src/version.c 2022-03-30 21:57:46.896372724 +0100
--- src/version.c 2022-03-30 21:58:52.580361698 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4652,
/**/

--
ARTHUR: Did you say shrubberies?
ROGER: Yes. Shrubberies are my trade. I am a shrubber. My name is Roger
the Shrubber. I arrange, design, and sell shrubberies.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// 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