[MAJOR] last bunch of capture changes for mempool v2
The header captures had lots of pools. They have all been transformed.
diff --git a/src/session.c b/src/session.c
index 38889c4..01073de 100644
--- a/src/session.c
+++ b/src/session.c
@@ -51,17 +51,17 @@
struct cap_hdr *h;
for (h = s->fe->rsp_cap; h; h = h->next) {
if (txn->rsp.cap[h->index] != NULL)
- pool_free_to(h->pool, txn->rsp.cap[h->index]);
+ pool_free2(h->pool, txn->rsp.cap[h->index]);
}
- pool_free_to(s->fe->rsp_cap_pool, txn->rsp.cap);
+ pool_free2(s->fe->rsp_cap_pool, txn->rsp.cap);
}
if (txn->req.cap != NULL) {
struct cap_hdr *h;
for (h = s->fe->req_cap; h; h = h->next) {
if (txn->req.cap[h->index] != NULL)
- pool_free_to(h->pool, txn->req.cap[h->index]);
+ pool_free2(h->pool, txn->req.cap[h->index]);
}
- pool_free_to(s->fe->req_cap_pool, txn->req.cap);
+ pool_free2(s->fe->req_cap_pool, txn->req.cap);
}
if (txn->uri)