From: wessels <> Date: Thu, 15 Sep 2005 21:10:14 +0000 (+0000) Subject: Found possible leak of HttpReply in processReplyHeader() when X-Git-Tag: SQUID_3_0_PRE4~616 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d279b671f7f6d67c22d32ff9c428b29a9629bb;p=thirdparty%2Fsquid.git Found possible leak of HttpReply in processReplyHeader() when only partial headers have been received. --- diff --git a/src/http.cc b/src/http.cc index a74d086917..9a4462d147 100644 --- a/src/http.cc +++ b/src/http.cc @@ -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 */ }