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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user