From: wessels <> Date: Wed, 17 Apr 1996 04:52:03 +0000 (+0000) Subject: Fixed problem with free()'ing config_file X-Git-Tag: SQUID_3_0_PRE1~6136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10a4267faf0bd96db90efb94f652ade6d0611e37;p=thirdparty%2Fsquid.git Fixed problem with free()'ing config_file --- diff --git a/ChangeLog b/ChangeLog index 89c6d25a72..4f276592a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -76,3 +76,6 @@ - Removed check for "\r\n" in icpRead, use 'immed' flag instead - Invented request_t struct and urlParse to avoid sscanf'ing the URL string too often. + +alpha19 + - Fixed problem with free()'ing config_file. diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3686193d2d..2b089908f7 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,4 +1,4 @@ -/* $Id: cache_cf.cc,v 1.49 1996/04/16 20:53:33 wessels Exp $ */ +/* $Id: cache_cf.cc,v 1.50 1996/04/16 22:52:04 wessels Exp $ */ /* DEBUG: Section 3 cache_cf: Configuration file parsing */ @@ -175,7 +175,7 @@ time_t neighbor_timeout = DefaultNeighborTimeout; /* for fast access */ int single_parent_bypass = 0; int DnsPositiveTtl = DefaultPositiveDnsTtl; char *DefaultSwapDir = DEFAULT_SWAP_DIR; -char *config_file = DEFAULT_CONFIG_FILE; +char *config_file = xstrdup(DEFAULT_CONFIG_FILE); char *cfg_filename = NULL; /* just the last part */ char w_space[] = " \t\n";