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

Function leak_detect_req_done

lightningd/memdump.c:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static void leak_detect_req_done(const struct subd_req *req,
169 struct leak_detect *leak_detect)
170{
171 leak_detect->num_outstanding_requests--;
172 if (leak_detect->num_outstanding_requests == 0) {
173 /* We do this off a timer: doing it off a subd reply makes us think that the
174 * subd->conn (temporarily set to NULL during the cb) is a leak! */
175 new_reltimer(leak_detect->ld->timers, leak_detect,
176 time_from_sec(0),
177 finish_report, leak_detect);
178 }
179}
180
181/* Start a leak request: decrements num_outstanding_requests when freed. */
182void start_leak_request(const struct subd_req *req,

Callers

nothing calls this directly

Calls 1

time_from_secFunction · 0.85

Tested by

no test coverage detected