mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +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",
|
"Provider for \"%s\" is not available",
|
||||||
method);
|
method);
|
||||||
report_error(buf);
|
report_error(buf);
|
||||||
|
msgpack_rpc_free_object(arg);
|
||||||
return NIL;
|
return NIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user