From 5b304fce4f21f3f0592c9fe4d8e8f59498d88992 Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Fri, 2 Feb 2018 14:42:56 +0000 Subject: [PATCH] jsonrpc: Let freeing of `cmd` free `names` Fixes: #885 --- lightningd/jsonrpc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 5f33bdf37..9940a1fff 100644 --- a/lightningd/jsonrpc.c +++ b/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++;