From 9aa9a8236f47f5721014546d051d1fc28c9758df Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 26 Jul 2022 13:42:03 +0930 Subject: [PATCH] commando: free incmd as soon as we use it. Otherwise we left it in the cache, causing "New cmd replacing old" messages. --- plugins/commando.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/commando.c b/plugins/commando.c index c2b32239e..83379aafb 100644 --- a/plugins/commando.c +++ b/plugins/commando.c @@ -485,6 +485,7 @@ static void handle_incmd(struct node_id *peer, } try_command(peer, idnum, incmd->contents, tal_bytelen(incmd->contents)); + tal_free(incmd); } static struct command_result *handle_reply(struct node_id *peer,