mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
committed by
Christian Decker
parent
e4950db9a3
commit
dc745cdf2f
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user