From 3ed496e45b6faea3edd6a7044c125b384ce3e8c5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 15 Dec 2017 20:59:45 +1030 Subject: [PATCH] lightningd: free failed output htlcs. Signed-off-by: Rusty Russell --- lightningd/peer_htlcs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 7087c1da7..ab15745b2 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -348,6 +348,7 @@ static void rcvd_htlc_reply(struct subd *subd, const u8 *msg, const int *fds, } else local_fail_htlc(hout->in, failure_code, hout->key.peer->scid); + tal_free(hout); return; }