Skip to content

Commit

Permalink
lightningd: fix outstanding taken pointer.
Browse files Browse the repository at this point in the history
lightningd: Outstanding taken pointers: lightningd/pay.c:243:channel_update

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Oct 9, 2018
1 parent 0b18709 commit 123713f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightningd/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 123713f

Please sign in to comment.