From 123713fbf5343c592b2ee86e6a3ce9f18db825b8 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 9 Oct 2018 19:13:52 +1030 Subject: [PATCH] lightningd: fix outstanding taken pointer. lightningd: Outstanding taken pointers: lightningd/pay.c:243:channel_update Signed-off-by: Rusty Russell --- lightningd/pay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/pay.c b/lightningd/pay.c index 84d052ad7..c0545ad14 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -204,7 +204,8 @@ static u8 *patch_channel_update(const tal_t *ctx, u8 *channel_update TAKES) tal_free(channel_update); return fixed; } else { - return channel_update; + return tal_dup_arr(ctx, u8, + channel_update, tal_count(channel_update), 0); } }