From 9a72016640d0d55d3c76dcbb8f3221226bda4417 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 20 Jan 2020 15:41:41 +1030 Subject: [PATCH] lightningd: remove unused allocation. Not a leak, since it's off tmpctx, but send_htlc_out allocates this itself. Signed-off-by: Rusty Russell --- lightningd/peer_htlcs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 7bed47c22..69084c927 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -576,7 +576,6 @@ static void forward_htlc(struct htlc_in *hin, goto fail; } - hout = tal(tmpctx, struct htlc_out); failcode = send_htlc_out(next, amt_to_forward, outgoing_cltv_value, &hin->payment_hash, 0, next_onion, hin, &hout);