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

patch 8.1.1591: on error garbage collection may free memory in use

Problem:    On error garbage collection may free memory in use.
Solution:   Reset may_garbage_collect when evaluating expression mapping.
            Add tests. (Ozaki Kiichi, closes #4579)
This commit is contained in:
Bram Moolenaar
2019-06-25 06:28:02 +02:00
parent 6c6a603cd2
commit 7d491c4253
6 changed files with 82 additions and 4 deletions

View File

@@ -1665,7 +1665,7 @@ func Test_refcount()
delfunc DictFunc
endfunc
func! Test_funccall_garbage_collect()
func Test_funccall_garbage_collect()
func Func(x, ...)
call add(a:x, a:000)
endfunc