Patch 8.2.0734

8 views
Skip to first unread message

Bram Moolenaar

unread,
May 10, 2020, 5:12:26 PM5/10/20
to vim...@googlegroups.com

Patch 8.2.0734
Problem: Vim9: leaking memory when using :finish.
Solution: Do not check for next line in third pass.
Files: src/scriptfile.c


*** ../vim-8.2.0733/src/scriptfile.c 2020-05-10 15:24:41.392262069 +0200
--- src/scriptfile.c 2020-05-10 23:10:22.335130069 +0200
***************
*** 1773,1779 ****

// Only concatenate lines starting with a \ when 'cpoptions' doesn't
// contain the 'C' flag.
! if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL)
{
// compensate for the one line read-ahead
--sp->sourcing_lnum;
--- 1773,1783 ----

// Only concatenate lines starting with a \ when 'cpoptions' doesn't
// contain the 'C' flag.
! if (line != NULL && do_concat && vim_strchr(p_cpo, CPO_CONCAT) == NULL
! #ifdef FEAT_EVAL
! && sp->use_lines_ga < 0
! #endif
! )
{
// compensate for the one line read-ahead
--sp->sourcing_lnum;
*** ../vim-8.2.0733/src/version.c 2020-05-10 22:53:51.282678776 +0200
--- src/version.c 2020-05-10 23:11:06.926971366 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 734,
/**/

--
From "know your smileys":
:-H Is missing teeth

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