]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
plug memory leaks from parsing reply headers
authorwessels <>
Mon, 15 Apr 1996 10:08:51 +0000 (10:08 +0000)
committerwessels <>
Mon, 15 Apr 1996 10:08:51 +0000 (10:08 +0000)
src/ftp.cc
src/http.cc

index 237c588c53b5c0388ce642c77d46a20daa612263..12a4978f83c0da8c561e68282d0ad8bb7066ecf5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: ftp.cc,v 1.34 1996/04/12 21:41:37 wessels Exp $ */
+/* $Id: ftp.cc,v 1.35 1996/04/15 04:08:51 wessels Exp $ */
 
 /*
  * DEBUG: Section 9           ftp: FTP
@@ -242,6 +242,7 @@ static void ftpProcessReplyHeader(data, buf, size)
            }
            t = strtok(NULL, "\n");
        }
+       safe_free(headers);
        if (reply->code)
            debug(11, 3, "ftpProcessReplyHeader: HTTP CODE: %d\n", reply->code);
        switch (reply->code) {
index 3bb8b37c715c5ad6b6a68f448dc58b11fc507bf8..a849b7607cc77d6a6804fc9d0e5211362e574667 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: http.cc,v 1.44 1996/04/12 21:41:38 wessels Exp $ */
+/* $Id: http.cc,v 1.45 1996/04/15 04:08:52 wessels Exp $ */
 
 /*
  * DEBUG: Section 11          http: HTTP
@@ -216,6 +216,7 @@ static void httpProcessReplyHeader(data, buf, size)
            }
            t = strtok(NULL, "\n");
        }
+       safe_free(headers);
        if (reply->code)
            debug(11, 3, "httpProcessReplyHeader: HTTP CODE: %d\n", reply->code);
        switch (reply->code) {