From: hno <> Date: Mon, 28 May 2001 05:33:31 +0000 (+0000) Subject: Bugzilla #162 X-Git-Tag: SQUID_3_0_PRE1~1503 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42bf7c640ca27cbfef98ec063a4d9b0d19f5968f;p=thirdparty%2Fsquid.git Bugzilla #162 If Squid is configured as a httpd accelerator, then it leaks Config2.Accel.prefix at every reconfigure/log rotation. Reported by Rady Greab --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 22fc67b23b..6e90c0fd29 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -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(); }