]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed ICAP memory leak. ICAPClientRespmodPrecache no longer has
authorwessels <>
Tue, 24 Jan 2006 05:47:56 +0000 (05:47 +0000)
committerwessels <>
Tue, 24 Jan 2006 05:47:56 +0000 (05:47 +0000)
to "give up control" of the HttpReply since it is now lock-counted.

src/ICAP/ICAPClientRespmodPrecache.cc

index c2e3b0ed7b333596c1e8956b6029ba7dbad7900b..ed9bc50fa06284e6abbf08d29011c93620fc2a97 100644 (file)
@@ -144,13 +144,7 @@ void ICAPClientRespmodPrecache::noteSourceStart(MsgPipe *p)
     ssize_t dummy;
     bool expect_body = reply->expectingBody(virgin->data->cause->method, dummy);
 
-    /*
-     * When we call takeAdaptedHeaders() we give up any control over
-     * adapted->data->header
-     */
     httpState->takeAdaptedHeaders(reply);
-    adapted->data->header = NULL;
-    reply = NULL;
 
     if (expect_body)
         noteSourceProgress(p);