]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #162
authorhno <>
Mon, 28 May 2001 05:33:31 +0000 (05:33 +0000)
committerhno <>
Mon, 28 May 2001 05:33:31 +0000 (05:33 +0000)
If Squid is configured as a httpd accelerator, then it leaks
Config2.Accel.prefix at every reconfigure/log rotation.

Reported by Rady Greab

src/cache_cf.cc

index 22fc67b23b67b7bd7c4ae66dbf38cc4c929599d2..6e90c0fd29187a42958c66a8356d7cefa898f096 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.381 2001/05/08 15:24:35 hno Exp $
+ * $Id: cache_cf.cc,v 1.382 2001/05/27 23:33:31 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -226,7 +226,7 @@ parseConfigFile(const char *file_name)
     char *token = NULL;
     char *tmp_line;
     int err_count = 0;
-    free_all();
+    configFreeMemory();
     default_all();
     if ((fp = fopen(file_name, "r")) == NULL)
        fatalf("Unable to open configuration file: %s: %s",
@@ -2182,6 +2182,7 @@ check_null_https_port_list(const https_port_list * s)
 void
 configFreeMemory(void)
 {
+    safe_free(Config2.Accel.prefix);
     free_all();
 }