mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
vim-patch:8.0.0344: unlet command leaks memory (#8141)
Problem: Unlet command leaks memory. (Nikolai Pavlov)
Solution: Free the memory on error. (closes vim/vim#1497)
49439c4cdf
This commit is contained in:

committed by
Justin M. Keyes

parent
cca407b43e
commit
f407a94032
@@ -24,3 +24,7 @@ func Test_not_existing()
|
|||||||
call assert_true(v:exception =~ ':E108:')
|
call assert_true(v:exception =~ ':E108:')
|
||||||
endtry
|
endtry
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_unlet_fails()
|
||||||
|
call assert_fails('unlet v:["count"]', 'E46:')
|
||||||
|
endfunc
|
||||||
|
Reference in New Issue
Block a user