diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-22 18:21:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-22 18:21:36 +0000 |
commit | 39b8944539a9cde553fe709e535fdfd37d0f9307 (patch) | |
tree | 43955cf8be13f41fc772829a67869d64a018298d /src/evalvars.c | |
parent | 7b29f6a3949743914f08410b6f6bd6237c2f2038 (diff) | |
download | vim-git-39b8944539a9cde553fe709e535fdfd37d0f9307.tar.gz |
patch 8.2.4182: memory leak when evaluating 'diffexpr'v8.2.4182
Problem: Memory leak when evaluating 'diffexpr'.
Solution: Use free_tv() instead of clear_tv().
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index a1d2b9b49..9dbdc75c0 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -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); |