free hdlr_extra if its set

This commit is contained in:
Joris Vink 2013-08-14 16:09:09 +02:00
parent ecefdb18ab
commit ef9d37e54b
2 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,9 @@ kore_connection_remove(struct connection *c)
SSL_free(c->ssl);
close(c->fd);
if (c->hdlr_extra != NULL)
kore_mem_free(c->hdlr_extra);
if (c->inflate_started)
inflateEnd(&(c->z_inflate));
if (c->deflate_started)

View File

@ -205,6 +205,8 @@ http_request_free(struct http_request *req)
if (req->agent != NULL)
kore_mem_free(req->agent);
if (req->hdlr_extra != NULL)
kore_mem_free(req->hdlr_extra);
kore_pool_put(&http_request_pool, req);
}