mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
Allocate off ctx instead of tmpctx in encode_short_channel_ids_start(const tal_t *ctx)
This commit is contained in:
committed by
Rusty Russell
parent
2c7170b858
commit
7969cc335e
@@ -197,7 +197,7 @@ static struct peer *find_peer(struct daemon *daemon, const struct pubkey *id)
|
||||
|
||||
static u8 *encode_short_channel_ids_start(const tal_t *ctx)
|
||||
{
|
||||
u8 *encoded = tal_arr(tmpctx, u8, 0);
|
||||
u8 *encoded = tal_arr(ctx, u8, 0);
|
||||
towire_u8(&encoded, SHORTIDS_ZLIB);
|
||||
return encoded;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user