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

Function channeld_memleak_req_done

lightningd/peer_control.c:3039–3050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3037AUTODATA(json_command, &dev_forget_channel_command);
3038
3039static void channeld_memleak_req_done(struct subd *channeld,
3040 const u8 *msg, const int *fds UNUSED,
3041 struct leak_detect *leaks)
3042{
3043 bool found_leak;
3044
3045 if (!fromwire_channeld_dev_memleak_reply(msg, &found_leak))
3046 fatal("Bad channel_dev_memleak");
3047
3048 if (found_leak)
3049 report_subd_memleak(leaks, channeld);
3050}
3051
3052static void onchaind_memleak_req_done(struct subd *onchaind,
3053 const u8 *msg, const int *fds UNUSED,

Callers

nothing calls this directly

Calls 3

fatalFunction · 0.70
report_subd_memleakFunction · 0.70

Tested by

no test coverage detected