diff --git a/src/http.c b/src/http.c index acd2884..4747484 100644 --- 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) {