To: vim_dev@googlegroups.com Subject: Patch 8.2.0721 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///