[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:
parent
5fdfb911a0
commit
41dff82b54
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user