Patch 8.2.2142
Problem: Memory leak when heredoc is not terminated.
Solution: Free heredoc_trimmed.
Files: src/userfunc.c
*** ../vim-8.2.2141/src/userfunc.c 2020-12-13 17:50:16.734956500 +0100
--- src/userfunc.c 2020-12-13 20:57:07.738626671 +0100
***************
*** 3705,3710 ****
--- 3705,3711 ----
ret_free:
ga_clear_strings(&argtypes);
vim_free(skip_until);
+ vim_free(heredoc_trimmed);
vim_free(line_to_free);
vim_free(fudi.fd_newkey);
if (name != name_arg)
*** ../vim-8.2.2141/src/version.c 2020-12-13 20:26:25.928035621 +0100
--- src/version.c 2020-12-13 20:57:51.182405802 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2142,
/**/
--
People who want to share their religious views with you
almost never want you to share yours with them.
/// 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 ///