Browse Source

jsonrpc: Let freeing of `cmd` free `names`

Fixes: #885
ppa-0.6.1
ZmnSCPxj 7 years ago
committed by Rusty Russell
parent
commit
5b304fce4f
  1. 1
      lightningd/jsonrpc.c

1
lightningd/jsonrpc.c

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

Loading…
Cancel
Save