diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-03 19:32:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-03 19:32:44 +0200 |
commit | 6e50ec2f0af85940e40ed3f897bfcfa445adbb0e (patch) | |
tree | aa5f2683823ba14f52c0ec31fdf9e5c2e66523a6 /src/testdir/test_vim9_assign.vim | |
parent | c17ba791a9edfa12926ce29f1eef39044bee5ab7 (diff) |
patch 8.2.2703: Vim9: memory leak when failing on locked variablev8.2.2703
Problem: Vim9: memory leak when failing on locked variable.
Solution: Free the memory.
Diffstat (limited to 'src/testdir/test_vim9_assign.vim')
-rw-r--r-- | src/testdir/test_vim9_assign.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 867afaf715..0b1d5fcb16 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -1323,6 +1323,7 @@ def Test_var_declaration() unlet g:var_test unlet g:var_prefixed unlet g:other_var + unlet g:globConst unlet g:FOO unlet g:FOOS unlet g:FLIST @@ -1375,7 +1376,7 @@ def Test_var_declaration_fails() SetGlobalConst() g:globConst = 234 END - CheckScriptFailure(lines, 'E741: Value is locked: globConst', 1) + CheckScriptFailure(lines, 'E741: Value is locked: g:globConst', 6) unlet g:globConst lines =<< trim END |