mirror of https://git.kore.io/kore.git
free hdlr_extra if its set
This commit is contained in:
parent
ecefdb18ab
commit
ef9d37e54b
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue