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

Raspunde prin e-mail lui