kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit e545657023f7640fb3307ddb90b16235ed28f5e8
parent e8e01980fc45cddf62f6eca3fffc6d2c9e9ae2ae
Author: Joris Vink <joris@coders.se>
Date:   Wed, 15 Dec 2021 12:16:37 +0100

make sure we only call rt->on_free if req has route

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -442,7 +442,7 @@ http_request_free(struct http_request *req) struct http_header *hdr, *next; struct http_cookie *ck, *cknext; - if (req->rt->on_free != NULL) + if (req->rt != NULL && req->rt->on_free != NULL) kore_runtime_http_request_free(req->rt->on_free, req); if (req->runlock != NULL) {