mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
lightningd: fix leak when next peer is unknown.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c75f9f4318
commit
ea7e13b5a7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue