| 166 | } |
| 167 | |
| 168 | static 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. */ |
| 182 | void start_leak_request(const struct subd_req *req, |
nothing calls this directly
no test coverage detected