In http_request_free() remove the req from the owner connection.

This commit is contained in:
Joris Vink 2014-07-27 21:00:17 +02:00
parent c9f39c9c9d
commit 8c22f0f004
1 changed files with 1 additions and 0 deletions

View File

@ -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);