From 8c22f0f0048aab8c56a5fc5662c0e344af1d7f85 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Sun, 27 Jul 2014 21:00:17 +0200 Subject: [PATCH] In http_request_free() remove the req from the owner connection. --- src/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http.c b/src/http.c index cbf12b3..579cfb6 100644 --- a/src/http.c +++ b/src/http.c @@ -306,6 +306,7 @@ http_request_free(struct http_request *req) kore_debug("http_request_free: %p->%p", req->owner, req); TAILQ_REMOVE(&http_requests, req, list); + TAILQ_REMOVE(&(req->owner->http_requests), req, olist); for (hdr = TAILQ_FIRST(&(req->resp_headers)); hdr != NULL; hdr = next) { next = TAILQ_NEXT(hdr, list);