Patch 8.2.1800
Problem: Vim9: memory leak if "if" condition is invalid.
Solution: Free ppconst earlier.
Files: src/vim9compile.c
*** ../vim-8.2.1799/src/vim9compile.c 2020-10-04 16:06:00.513884339 +0200
--- src/vim9compile.c 2020-10-04 17:17:44.058727117 +0200
***************
*** 5721,5730 ****
// The expression results in a constant.
v = tv_get_bool_chk(&ppconst.pp_tv[0], &error);
if (error)
return NULL;
cctx->ctx_skip = v ? SKIP_NOT : SKIP_YES;
- clear_ppconst(&ppconst);
}
else
{
--- 5721,5730 ----
// The expression results in a constant.
v = tv_get_bool_chk(&ppconst.pp_tv[0], &error);
+ clear_ppconst(&ppconst);
if (error)
return NULL;
cctx->ctx_skip = v ? SKIP_NOT : SKIP_YES;
}
else
{
*** ../vim-8.2.1799/src/version.c 2020-10-04 16:16:50.919838655 +0200
--- src/version.c 2020-10-04 17:19:12.698507185 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1800,
/**/
--
hundred-and-one symptoms of being an internet addict:
29. Your phone bill comes to your doorstep in a box.
/// 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/202010041525.094FPAmV2142493%40masaka.moolenaar.net.