| 915 | } |
| 916 | |
| 917 | void subd_release_channel(struct subd *owner, const void *channel) |
| 918 | { |
| 919 | /* If owner is a per-peer-daemon, and not already freeing itself... */ |
| 920 | if (owner->channel) { |
| 921 | assert(owner->channel == channel); |
| 922 | owner->channel = NULL; |
| 923 | tal_free(owner); |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | #if DEVELOPER |
| 928 | char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld) |
no test coverage detected