mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
executor: Fix some memory leaks
This commit is contained in:
@ -243,10 +243,11 @@ describe('luaeval()', function()
|
||||
exc_exec([[call luaeval("error('ERROR')")]]))
|
||||
end)
|
||||
|
||||
it('does not leak memory when called with too long line with syntax error',
|
||||
it('does not leak memory when called with too long line',
|
||||
function()
|
||||
local s = ('x'):rep(65536)
|
||||
eq('Vim(call):E5107: Error while creating lua chunk for luaeval(): [string "<VimL compiled string>"]:1: unexpected symbol near \')\'',
|
||||
exc_exec([[call luaeval("(']] .. s ..[[' + )")]]))
|
||||
eq(s, funcs.luaeval('"' .. s .. '"'))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user