mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
cca407b43e
commit
f407a94032
@ -24,3 +24,7 @@ func Test_not_existing()
|
||||
call assert_true(v:exception =~ ':E108:')
|
||||
endtry
|
||||
endfunc
|
||||
|
||||
func Test_unlet_fails()
|
||||
call assert_fails('unlet v:["count"]', 'E46:')
|
||||
endfunc
|
||||
|
Loading…
Reference in New Issue
Block a user