static void request_pool_destroy(void) { struct request *req, *treq; if (!reqp_init) { log_warn("request pool was never created, ignore"); } log_info("destroying request pool: free %"PRIu32, reqp.nfree); FREEPOOL_DESTROY(req, treq, &reqp, next, request_destroy); reqp_init = false; }
static void response_pool_destroy(void) { struct response *rsp, *trsp; if (rspp_init) { log_info("destroying response pool: free %"PRIu32, rspp.nfree); FREEPOOL_DESTROY(rsp, trsp, &rspp, next, response_destroy); rspp_init = false; } else { log_warn("response pool was never created, ignore"); } }