Browse Source

lightningd: fix outstanding taken pointer.

lightningd: Outstanding taken pointers: lightningd/pay.c:243:channel_update

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fee-tracking2
Rusty Russell 6 years ago
parent
commit
123713fbf5
  1. 3
      lightningd/pay.c

3
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);
}
}

Loading…
Cancel
Save