mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -429,7 +429,7 @@ eval_diff(
|
|||||||
|
|
||||||
// errors are ignored
|
// errors are ignored
|
||||||
tv = eval_expr(p_dex, NULL);
|
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_IN, NULL, -1);
|
||||||
set_vim_var_string(VV_FNAME_NEW, NULL, -1);
|
set_vim_var_string(VV_FNAME_NEW, NULL, -1);
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4182,
|
||||||
/**/
|
/**/
|
||||||
4181,
|
4181,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user