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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user