0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4182: memory leak when evaluating 'diffexpr'

Problem:    Memory leak when evaluating 'diffexpr'.
Solution:   Use free_tv() instead of clear_tv().
This commit is contained in:
Bram Moolenaar
2022-01-22 18:21:36 +00:00
parent 7b29f6a394
commit 39b8944539
2 changed files with 3 additions and 1 deletions

View File

@@ -429,7 +429,7 @@ eval_diff(
// errors are ignored
tv = eval_expr(p_dex, NULL);
clear_tv(tv);
free_tv(tv);
set_vim_var_string(VV_FNAME_IN, NULL, -1);
set_vim_var_string(VV_FNAME_NEW, NULL, -1);

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4182,
/**/
4181,
/**/