aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-03-17 16:49:06 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-03-17 09:49:06 +0100
commitf407a94032ae7c3a78aa39c2de02e37d14a5f861 (patch)
treef14efffd3cc4bddc5b2a6722a82af0b90afe1ec6
parentcca407b43e62d5e1abdfc59ae47b0e24eacc5807 (diff)
downloadrneovim-f407a94032ae7c3a78aa39c2de02e37d14a5f861.tar.gz
rneovim-f407a94032ae7c3a78aa39c2de02e37d14a5f861.tar.bz2
rneovim-f407a94032ae7c3a78aa39c2de02e37d14a5f861.zip
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) https://github.com/vim/vim/commit/49439c4cdf7d2822255f292adda4226656fe144d
-rw-r--r--src/nvim/testdir/test_unlet.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_unlet.vim b/src/nvim/testdir/test_unlet.vim
index 96ba752d9f..3f06058d03 100644
--- a/src/nvim/testdir/test_unlet.vim
+++ b/src/nvim/testdir/test_unlet.vim
@@ -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