]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Found possible leak of HttpReply in processReplyHeader() when
authorwessels <>
Thu, 15 Sep 2005 21:10:14 +0000 (21:10 +0000)
committerwessels <>
Thu, 15 Sep 2005 21:10:14 +0000 (21:10 +0000)
only partial headers have been received.

src/http.cc

index a74d086917f3e6b80ad09b4d3d8e7e1a0f5b8abd..9a4462d147a7dbfc79e7028391fae060b33f2315 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.456 2005/09/10 16:03:52 serassio Exp $
+ * $Id: http.cc,v 1.457 2005/09/15 15:10:14 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -700,6 +700,7 @@ HttpStateData::processReplyHeader(const char *buf, int size)
         if (eof)
             hdr_size = hdr_len;
         else {
+            httpReplyDestroy(reply);
             ctx_exit(ctx);
             return;            /* headers not complete */
         }