From 1c81486b486b602fe2856086a8a5b1ecf136ea4b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Aug 2018 14:50:06 +0930 Subject: [PATCH] routing: fix falsely flagged leak. pending goes away on a timer, sure, but might as well use tmpctx here. Signed-off-by: Rusty Russell --- gossipd/routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 72589da27..c6ef01cf2 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -871,7 +871,7 @@ u8 *handle_channel_announcement(struct routing_state *rstate, } status_trace("Received channel_announcement for channel %s", - type_to_string(pending, struct short_channel_id, + type_to_string(tmpctx, struct short_channel_id, &pending->short_channel_id)); /* Add both endpoints to the pending_node_map so we can stash