]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Partial bug #2964 fix: Do not leak HttpRequests that are not worth logging.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 12 Sep 2010 00:12:49 +0000 (18:12 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 12 Sep 2010 00:12:49 +0000 (18:12 -0600)
TODO: Log all (or at least more) requests by removing (out.size || logType)
logging guard.

Based on lp 3p1-rock branch, r9613.

src/client_side.cc

index 74bb562a92f176c223a7da479393d4ad7cd502de..09142c3f8be6bd5a1018b9faeb12cd39ac622b97 100644 (file)
@@ -656,9 +656,9 @@ ClientHttpRequest::logRequest()
         }
 
         delete checklist;
-
-        accessLogFreeMemory(&al);
     }
+
+    accessLogFreeMemory(&al);
 }
 
 void