lightningd: fix leak when next peer is unknown.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-01-15 14:23:27 +10:30 committed by Christian Decker
parent c75f9f4318
commit ea7e13b5a7

View file

@ -581,6 +581,7 @@ static void channel_resolve_reply(struct subd *gossip, const u8 *msg,
if (!peer_id) {
local_fail_htlc(gr->hin, WIRE_UNKNOWN_NEXT_PEER, NULL);
tal_free(gr);
return;
}