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:
oni-link
2014-07-23 13:40:19 +02:00
parent ba04a1c306
commit bb1f08f6e8

View File

@@ -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;
}