Mirror of the Vim source from https://github.com/vim/vim
Revision | 6dce588f7a46688d18b0d17f5abbe542746d1c06 (tree) |
---|---|
Time | 2020-10-20 06:15:03 |
Author | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.1869: Vim9: memory leak when using add()
Commit: https://github.com/vim/vim/commit/955347cc7e78352a5d49540573ae958ad45e6386
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 19 23:01:46 2020 +0200
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 1869, | |
755 | +/**/ | |
754 | 756 | 1868, |
755 | 757 | /**/ |
756 | 758 | 1867, |
@@ -2308,6 +2308,7 @@ | ||
2308 | 2308 | } |
2309 | 2309 | if (list_append_tv(l, tv2) == FAIL) |
2310 | 2310 | goto failed; |
2311 | + clear_tv(tv2); | |
2311 | 2312 | --ectx.ec_stack.ga_len; |
2312 | 2313 | } |
2313 | 2314 | break; |