commit | 49439c4cdf7d2822255f292adda4226656fe144d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Feb 20 23:07:05 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Feb 20 23:07:05 2017 +0100 |
tree | 2007c8f88c26e6aab7ce8d2696d57eb8637ae28f | |
parent | e7877fe0de1426f8de9ada825e4f7b64810c7dbc [diff] |
patch 8.0.0344: unlet command leaks memory Problem: Unlet command leaks memory. (Nikolai Pavlov) Solution: Free the memory on error. (closes #1497)
diff --git a/src/testdir/test_unlet.vim b/src/testdir/test_unlet.vim index 4c58785..c20b0be 100644 --- a/src/testdir/test_unlet.vim +++ b/src/testdir/test_unlet.vim
@@ -17,3 +17,7 @@ unlet! does_not_exist call assert_fails('unlet does_not_exist', 'E108:') endfunc + +func Test_unlet_fails() + call assert_fails('unlet v:["count"]', 'E46:') +endfunc