common: assert that they don't call setup_tmpctx() twice.

Otherwise, leaks will occur.  And fix up dualopend and devtool/route,
which do this!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-10-22 19:44:29 +10:30
parent 61ecc4086d
commit c821e41085
3 changed files with 4 additions and 4 deletions

View File

@@ -28,9 +28,6 @@ static struct route_hop *least_cost(struct gossmap *map,
struct route_hop *path;
struct timemono tstart, tstop;
setup_locale();
setup_tmpctx();
tstart = time_mono();
dij = dijkstra(tmpctx, map, dst,
sent, riskfactor, route_can_carry,