]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix memory leak of HttpRequest objects
authorNathan Hoad <nathan@getoffmalawn.com>
Thu, 10 Mar 2016 06:55:17 +0000 (19:55 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 10 Mar 2016 06:55:17 +0000 (19:55 +1300)
src/client_side.cc

index e2c0f6082d1d3ba1f2aac5e29de562553aa12f9c..9df9c99ba79a312030103da30099b87a4f849734 100644 (file)
@@ -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);