MCPcopy Create free account
hub / github.com/ElementsProject/lightning / subd_release_channel

Function subd_release_channel

lightningd/subd.c:917–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917void 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
928char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld)

Callers 2

channel_set_ownerFunction · 0.70

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected