0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1720: Vim9: memory leak with heredoc that isn't executed

Problem:    Vim9: memory leak with heredoc that isn't executed. (Dominique
            Pellé)
Solution:   Don't clear the list items. (closes #6991)
This commit is contained in:
Bram Moolenaar
2020-09-21 20:35:55 +02:00
parent 10e4f12bf4
commit 078269bdce
3 changed files with 20 additions and 7 deletions

View File

@@ -259,6 +259,14 @@ def Test_assignment()
let w: number
w = 123
assert_equal(123, w)
# this should not leak
if 0
let text =<< trim END
some text
END
endif
enddef
def Test_vim9_single_char_vars()