diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-03 02:53:57 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-15 23:07:29 -0400 |
commit | 9108256ad4391516ba5dc37b36a751c71969598f (patch) | |
tree | 3c38027cb65a7b83866ca87f4e0467c40d2031ed /src/nvim/eval.c | |
parent | df6354c223382422fa52cfaebdb36689025ae98f (diff) | |
download | rneovim-9108256ad4391516ba5dc37b36a751c71969598f.tar.gz rneovim-9108256ad4391516ba5dc37b36a751c71969598f.tar.bz2 rneovim-9108256ad4391516ba5dc37b36a751c71969598f.zip |
vim-patch:8.1.1012: memory leak with E461
Problem: Memory leak with E461.
Solution: Clear the typeval. (Dominique Pelle, closes vim/vim#4111)
https://github.com/vim/vim/commit/ab89d7ab89a1dd7e40cc28df96c71c11b5ab9089
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 0e60f7a35a..b4fab764de 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2369,6 +2369,7 @@ static char_u *get_lval(char_u *const name, typval_T *const rettv, /* Can't add "v:" variable. */ if (lp->ll_dict == &vimvardict) { EMSG2(_(e_illvar), name); + tv_clear(&var1); return NULL; } |