mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: fix outstanding taken pointer.
lightningd: Outstanding taken pointers: lightningd/pay.c:243:channel_update Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user