diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index 4429404dd1fe..56424da896c0 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -431,7 +431,7 @@ static void channel_hints_update(struct payment *p, if (local) { hint->local = tal_free(hint->local); - hint->local = tal(NULL, struct local_hint); + hint->local = tal(root->hints, struct local_hint); hint->local->htlc_budget = *htlc_budget; }