mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
Fix memory leak in provider_call.
If no channel can be found for a method, free argument arg before returning.
This commit is contained in:
@@ -109,6 +109,7 @@ Object provider_call(char *method, Object arg)
|
||||
"Provider for \"%s\" is not available",
|
||||
method);
|
||||
report_error(buf);
|
||||
msgpack_rpc_free_object(arg);
|
||||
return NIL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user