mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
utils: remove tal_tmpctx altogether, use global.
In particular, we now only free tmpctx at the end of main(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -222,12 +222,8 @@ static char const *stringify_route(const tal_t *ctx, struct route_hop *route)
|
||||
|
||||
static void log_route(struct pay *pay, struct route_hop *route)
|
||||
{
|
||||
const tal_t *tmpctx = tal_tmpctx(pay->try_parent);
|
||||
|
||||
log_info(pay->cmd->ld->log, "pay(%p): sendpay via route: %s",
|
||||
pay, stringify_route(tmpctx, route));
|
||||
|
||||
tal_free(tmpctx);
|
||||
}
|
||||
|
||||
static void json_pay_sendpay_resume(const struct sendpay_result *r,
|
||||
|
||||
Reference in New Issue
Block a user