fix(context): don't leak memory on multiple invalid objects (#25979)

This commit is contained in:
zeertzjq
2023-11-11 13:10:26 +08:00
committed by GitHub
parent e9b9a86cd5
commit fdaf6bc557
3 changed files with 3 additions and 3 deletions

View File

@@ -378,7 +378,7 @@ describe('context functions', function()
it('errors when context dictionary is invalid', function()
call('ctxpush')
eq('Vim:E474: Failed to convert list to msgpack string buffer',
pcall_err(call, 'ctxset', { regs = { {} } }))
pcall_err(call, 'ctxset', { regs = { {} }, jumps = { {} } }))
end)
it('sets context dictionary at index in context stack', function()