mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 09:40:19 +01:00
peer_htlcs.c: close taken() leak.
Found in tests/test_connection.py::test_restart_many_payments: `lightningd: outstanding taken(): lightningd/peer_htlcs.c:532:towire_temporary_channel_failure(((void *)0), ((void *)0))` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
e4950db9a3
commit
dc745cdf2f
1 changed files with 3 additions and 0 deletions
|
@ -324,6 +324,9 @@ static void fail_out_htlc(struct htlc_out *hout,
|
|||
hout->failmsg);
|
||||
fail_in_htlc(hout->in, failonion);
|
||||
}
|
||||
} else {
|
||||
if (taken(failmsg_needs_update))
|
||||
tal_free(failmsg_needs_update);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue