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 -- [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/202005072024.047KOLYl013944%40masaka.moolenaar.net.