kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ef9d37e54bc555d35f3f7e6b77cfe8afafd02d69
parent ecefdb18ab681fc3491d581169e6ddc2dc6d5fe9
Author: Joris Vink <joris@coders.se>
Date:   Wed, 14 Aug 2013 16:09:09 +0200

free hdlr_extra if its set

Diffstat:
src/connection.c | 3+++
src/http.c | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c @@ -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) diff --git a/src/http.c b/src/http.c @@ -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); }