comparison src/testdir/test_vimscript.vim @ 17184:a5c3d374e1d3 v8.1.1591

patch 8.1.1591: on error garbage collection may free memory in use commit https://github.com/vim/vim/commit/7d491c425334d9477637372a4ebec64c228c8430 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 25 06:28:02 2019 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 Jun 2019 06:30:09 +0200
parents d244a9be99db
children 984eef966002
comparison
equal deleted inserted replaced
17183:694c578dedd2 17184:a5c3d374e1d3
1663 call d.Func() 1663 call d.Func()
1664 unlet d 1664 unlet d
1665 delfunc DictFunc 1665 delfunc DictFunc
1666 endfunc 1666 endfunc
1667 1667
1668 func! Test_funccall_garbage_collect() 1668 func Test_funccall_garbage_collect()
1669 func Func(x, ...) 1669 func Func(x, ...)
1670 call add(a:x, a:000) 1670 call add(a:x, a:000)
1671 endfunc 1671 endfunc
1672 call Func([], []) 1672 call Func([], [])
1673 " Must not crash cause by invalid freeing 1673 " Must not crash cause by invalid freeing