jsonrpc: Let freeing of cmd free names

Fixes: #885
This commit is contained in:
ZmnSCPxj 2018-02-02 14:42:56 +00:00 committed by Rusty Russell
parent ddf052982a
commit 5b304fce4f

View File

@ -685,7 +685,6 @@ bool json_get_params(struct command *cmd,
command_fail_detailed(cmd, JSONRPC2_INVALID_PARAMS, NULL,
"Missing '%s' parameter",
names[num_names]);
tal_free(names);
return false;
}
num_names++;