routing: fix falsely flagged leak.

pending goes away on a timer, sure, but might as well use tmpctx here.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-08-24 14:50:06 +09:30 committed by Christian Decker
parent b10bae1ceb
commit 1c81486b48
1 changed files with 1 additions and 1 deletions

View File

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