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:
KunMing Xie 2018-03-17 16:49:06 +08:00 committed by Justin M. Keyes
parent cca407b43e
commit f407a94032

View File

@ -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