We used to make this a tal_add_destructor2, but that costs 40 bytes per * chan, and we only ever explicitly free it anyway. */
| 544 | /* We used to make this a tal_add_destructor2, but that costs 40 bytes per |
| 545 | * chan, and we only ever explicitly free it anyway. */ |
| 546 | void free_chan(struct routing_state *rstate, struct chan *chan) |
| 547 | { |
| 548 | free_chans_from_node(rstate, chan); |
| 549 | uintmap_del(&rstate->chanmap, chan->scid.u64); |
| 550 | |
| 551 | tal_free(chan); |
| 552 | } |
| 553 | |
| 554 | static void init_half_chan(struct routing_state *rstate, |
| 555 | struct chan *chan, |
no test coverage detected