[CRITICAL] fixed memory leak in session_free()

Since the introduction of hdr_idx, session_free() had not
been updated to free the header ! It implied a consumption
of about 400 bytes per new session.
This commit is contained in:
Willy Tarreau 2007-01-01 23:32:30 +01:00
parent 5fdfb911a0
commit 41dff82b54

View File

@ -39,6 +39,9 @@ void session_free(struct session *s)
if (s->rep)
pool_free(buffer, s->rep);
if (s->hreq.hdr_idx.v != NULL)
pool_free_to(s->fe->hdr_idx_pool, s->hreq.hdr_idx.v);
if (s->rsp_cap != NULL) {
struct cap_hdr *h;
for (h = s->fe->fiprm->rsp_cap; h; h = h->next) {