mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 04:17:01 +00:00 
			
		
		
		
	fix(context): don't leak memory on multiple invalid objects (#25979)
This commit is contained in:
		| @@ -1982,7 +1982,7 @@ describe('API', function() | ||||
|  | ||||
|     it('errors when context dictionary is invalid', function() | ||||
|       eq('E474: Failed to convert list to msgpack string buffer', | ||||
|          pcall_err(nvim, 'load_context', { regs = { {} } })) | ||||
|          pcall_err(nvim, 'load_context', { regs = { {} }, jumps = { {} } })) | ||||
|       eq("Empty dictionary keys aren't allowed", | ||||
|          pcall_err(nvim, 'load_context', { regs = { { [''] = '' } } })) | ||||
|     end) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq