From 38a0ee8638ac97da4bb767b2d0ae9eba40810540 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 15 Dec 2017 20:59:21 +1030 Subject: [PATCH] jsonrpc: current pending commands are not a leak. The pay command in particular, attaches a reasonable number of temporaries to cmd, knowing they'll be freed once cmd is done. Signed-off-by: Rusty Russell --- lightningd/jsonrpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index eac1fe110..b80d2b93e 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -441,6 +441,8 @@ void command_fail(struct command *cmd, const char *fmt, ...) void command_still_pending(struct command *cmd) { + notleak_with_children(cmd); + notleak(cmd->jcon); cmd->pending = true; }