1
0
forked from aniani/vim

patch 8.0.1083: leaking memory in input part of channel

Problem:    Leaking memory in input part of channel.
Solution:   Clear the input part of channel.  Free the entry. Move failing
            command test to a separate file to avoid bogus leak reports
            clouding tests that should not leak.
This commit is contained in:
Bram Moolenaar
2017-09-09 18:16:43 +02:00
parent 9d18961323
commit 5b5adf5b9c
6 changed files with 27 additions and 9 deletions

View File

@@ -608,14 +608,6 @@ func Test_terminal_redir_file()
endif
if has('unix')
let buf = term_start('xyzabc', {'err_io': 'file', 'err_name': 'Xfile'})
call term_wait(buf)
call WaitFor('len(readfile("Xfile")) > 0')
call assert_match('executing job failed', readfile('Xfile')[0])
call WaitFor('!&modified')
call delete('Xfile')
bwipe
call writefile(['one line'], 'Xfile')
let buf = term_start('cat', {'in_io': 'file', 'in_name': 'Xfile'})
call term_wait(buf)