Patch 8.2.0721

7 views
Skip to first unread message

Bram Moolenaar

unread,
May 9, 2020, 10:44:55 AM5/9/20
to vim...@googlegroups.com

Patch 8.2.0721
Problem: Vim9: leaking memory when skipping.
Solution: Disable skipping in generate_ppconst().
Files: src/vim9compile.c


*** ../vim-8.2.0720/src/vim9compile.c 2020-05-09 15:43:58.322878209 +0200
--- src/vim9compile.c 2020-05-09 16:43:09.214617402 +0200
***************
*** 2417,2427 ****
--- 2417,2430 ----
{
int i;
int ret = OK;
+ int save_skip = cctx->ctx_skip;

+ cctx->ctx_skip = FALSE;
for (i = 0; i < ppconst->pp_used; ++i)
if (generate_tv_PUSH(cctx, &ppconst->pp_tv[i]) == FAIL)
ret = FAIL;
ppconst->pp_used = 0;
+ cctx->ctx_skip = save_skip;
return ret;
}

***************
*** 2754,2759 ****
--- 2757,2763 ----
++ppconst->pp_used;
return OK;
}
+ clear_tv(&argvars[0]);
}

if (generate_ppconst(cctx, ppconst) == FAIL)
*** ../vim-8.2.0720/src/version.c 2020-05-09 16:11:30.316503475 +0200
--- src/version.c 2020-05-09 16:33:18.815976971 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 721,
/**/

--
hundred-and-one symptoms of being an internet addict:
77. The phone company asks you to test drive their new PBX system

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