mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
make sure we only call rt->on_free if req has route
This commit is contained in:
parent
e8e01980fc
commit
e545657023
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user