From: Nathan Hoad Date: Thu, 10 Mar 2016 06:55:17 +0000 (+1300) Subject: Fix memory leak of HttpRequest objects X-Git-Tag: SQUID_4_0_8~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=542e1a7a4d1e8e314cce00afb022d38e1f695e69;p=thirdparty%2Fsquid.git Fix memory leak of HttpRequest objects --- diff --git a/src/client_side.cc b/src/client_side.cc index e2c0f6082d..9df9c99ba7 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -446,6 +446,7 @@ ClientHttpRequest::logRequest() } if (request) { + HTTPMSGUNLOCK(al->adapted_request); al->adapted_request = request; HTTPMSGLOCK(al->adapted_request); } @@ -2820,6 +2821,7 @@ ConnStateData::postHttpsAccept() acl_checklist->al->tcpClient = clientConnection; acl_checklist->al->cache.port = port; acl_checklist->al->cache.caddr = log_addr; + HTTPMSGUNLOCK(acl_checklist->al->request); acl_checklist->al->request = request; HTTPMSGLOCK(acl_checklist->al->request); acl_checklist->nonBlockingCheck(httpsSslBumpAccessCheckDone, this);