Patch 8.2.4182 (after 8.2.4182)
Problem: Memory leak when evaluating 'diffexpr'.
Solution: Use free_tv() instead of clear_tv().
Files: src/evalvars.c
*** ../vim-8.2.4181/src/evalvars.c 2022-01-22 17:58:09.336336062 +0000
--- src/evalvars.c 2022-01-22 18:15:48.666233297 +0000
***************
*** 429,435 ****
// errors are ignored
tv = eval_expr(p_dex, NULL);
! clear_tv(tv);
set_vim_var_string(VV_FNAME_IN, NULL, -1);
set_vim_var_string(VV_FNAME_NEW, NULL, -1);
--- 429,435 ----
// errors are ignored
tv = eval_expr(p_dex, NULL);
! free_tv(tv);
set_vim_var_string(VV_FNAME_IN, NULL, -1);
set_vim_var_string(VV_FNAME_NEW, NULL, -1);
*** ../vim-8.2.4181/src/version.c 2022-01-22 17:58:09.336336062 +0000
--- src/version.c 2022-01-22 18:21:24.259374562 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4182,
/**/
--
User: I'm having problems with my text editor.
Help desk: Which editor are you using?
User: I don't know, but it's version VI (pronounced: 6).
Help desk: Oh, then you should upgrade to version VIM (pronounced: 994).
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/20220122182329.08C1D1C11B3%40moolenaar.net.