Patch 8.2.0715

8 views
Skip to first unread message

Bram Moolenaar

unread,
May 7, 2020, 4:24:29 PM5/7/20
to vim...@googlegroups.com

Patch 8.2.0715
Problem: Vim9: leaking memory.
Solution: Free strings after concatenating them.
Files: src/vim9compile.c


*** ../vim-8.2.0714/src/vim9compile.c 2020-05-07 22:18:58.260836097 +0200
--- src/vim9compile.c 2020-05-07 22:22:56.424060681 +0200
***************
*** 4229,4234 ****
--- 4229,4236 ----
}
mch_memmove(tv1.vval.v_string, s1, len1);
STRCPY(tv1.vval.v_string + len1, s2);
+ vim_free(s1);
+ vim_free(s2);
}
else
{
*** ../vim-8.2.0714/src/version.c 2020-05-07 22:18:58.260836097 +0200
--- src/version.c 2020-05-07 22:23:45.331900695 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 715,
/**/

--
hundred-and-one symptoms of being an internet addict:
66. You create a homepage with the impression to cure the afflicted...but
your hidden agenda is to receive more e-mail.

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