diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-23 13:27:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-23 13:27:57 +0100 |
commit | 86fb3f8b99d155fe6bcbb553b5596c3e9fd570a9 (patch) | |
tree | 70c15d71459370408d094260654bca87c222f52c /src/eval.c | |
parent | 20e58561abc4116f3bfbafaef242d886dd77b303 (diff) |
patch 9.0.0556: leaking memory with nested functionsv9.0.0556
Problem: Leaking memory with nested functions.
Solution: Free saved pointer.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index bdf03896a4..d369df5e01 100644 --- a/src/eval.c +++ b/src/eval.c @@ -400,6 +400,7 @@ clear_evalarg(evalarg_T *evalarg, exarg_T *eap) // need to keep it around. --etga->ga_len; *eap->cmdlinep = ((char_u **)etga->ga_data)[etga->ga_len]; + vim_free(evalarg->eval_tofree); } else *eap->cmdlinep = evalarg->eval_tofree; |