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 -- [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/20220331091417.AE0F51C13F2%40moolenaar.net.