commit | 67da21a14726b106b49744f9773eba132fedd5f2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Mar 21 22:12:34 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Mar 21 22:12:34 2021 +0100 |
tree | 64c770c5e6b831fac7a5d230516fedd3512fb9b6 | |
parent | 7a6eaa06f98cef61d2131c25b4b47b8262cb8f59 [diff] [blame] |
patch 8.2.2636: memory leak when compiling inline function Problem: Memory leak when compiling inline function. Solution: Free the prefetched line.
diff --git a/src/eval.c b/src/eval.c index aa5f5b8..6cdc10f 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -2179,8 +2179,8 @@ evalarg->eval_tofree = NULL; } - vim_free(evalarg->eval_tofree_lambda); - evalarg->eval_tofree_lambda = NULL; + VIM_CLEAR(evalarg->eval_tofree_cmdline); + VIM_CLEAR(evalarg->eval_tofree_lambda); } }