1
0
forked from aniani/vim

patch 8.2.2636: memory leak when compiling inline function

Problem:    Memory leak when compiling inline function.
Solution:   Free the prefetched line.
This commit is contained in:
Bram Moolenaar
2021-03-21 22:12:34 +01:00
parent 7a6eaa06f9
commit 67da21a147
6 changed files with 26 additions and 9 deletions

View File

@@ -2179,8 +2179,8 @@ clear_evalarg(evalarg_T *evalarg, exarg_T *eap)
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);
}
}