Patch 8.2.1860

5 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 17, 2020, 4:58:55 PM10/17/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages