Patch 8.2.1860
Problem: Vim9: memory leak when throwing empty string.
Solution: Free the empty string.
Files: src/vim9execute.c
*** ../vim-8.2.1859/src/vim9execute.c 2020-10-17 22:04:04.118833463 +0200
--- src/vim9execute.c 2020-10-17 22:55:57.958073856 +0200
***************
*** 2094,2099 ****
--- 2094,2100 ----
if (tv->vval.v_string == NULL
|| *skipwhite(tv->vval.v_string) == NUL)
{
+ vim_free(tv->vval.v_string);
emsg(_(e_throw_with_empty_string));
goto failed;
}
*** ../vim-8.2.1859/src/version.c 2020-10-17 22:04:04.122833450 +0200
--- src/version.c 2020-10-17 22:58:05.141385563 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1860,
/**/
--
>From "know your smileys":
<>:-) Bishop
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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/202010172058.09HKwlqo723728%40masaka.moolenaar.net.