From f19e02eeaa5356e5b57eaefaae611fb2a415e606 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 15 Dec 2017 20:59:25 +1030 Subject: [PATCH] pay: close leak in payment_failed. Signed-off-by: Rusty Russell --- lightningd/pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/pay.c b/lightningd/pay.c index 94da4e7eb..2cdab2113 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -99,7 +99,7 @@ void payment_failed(struct lightningd *ld, const struct htlc_out *hout, log_info(hout->key.peer->log, "htlc %"PRIu64" failed with bad reply (%s)", hout->key.id, - tal_hex(pc, hout->failuremsg)); + tal_hex(ltmp, hout->failuremsg)); failcode = WIRE_PERMANENT_NODE_FAILURE; } else { failcode = fromwire_peektype(reply->msg);