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