diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 9ce592c8a..7ab4cbed8 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -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); } }