diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-20 21:59:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-20 21:59:39 +0100 |
commit | 538feb56e87c647d9b1cc8522f7650d263096f63 (patch) | |
tree | 3af7e268ff5f40569b098789eaedfc93a27a854e /src/testdir/test_channel.vim | |
parent | a44b3eeafa57d4904a3de86b132008b93404f0fd (diff) | |
download | vim-git-538feb56e87c647d9b1cc8522f7650d263096f63.tar.gz |
patch 8.2.0138: memory leak when starting a job failsv8.2.0138
Problem: Memory leak when starting a job fails.
Solution: Free the list of arguments. (Ozaki Kiichi, closes #5510)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 4dac7aaef..dace45b64 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1977,3 +1977,8 @@ func Test_zz_ch_log() call assert_match("%s%s", text[2]) call delete('Xlog') endfunc + +func Test_job_start_fails() + " this was leaking memory + call assert_fails("call job_start([''])", "E474:") +endfunc |