From: amosjeffries <> Date: Tue, 4 Mar 2008 19:00:36 +0000 (+0000) Subject: Bug 2250: double-freeing memory in http_port name= option code. X-Git-Tag: BASIC_TPROXY4~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13adaf1f9e568f42831903fdd7356779463f0ee5;p=thirdparty%2Fsquid.git Bug 2250: double-freeing memory in http_port name= option code. - Seems it was only a strdup / xstrdup problem --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 12aff3d64c..75a4a16263 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.543 2008/02/26 00:15:48 rousskov Exp $ + * $Id: cache_cf.cc,v 1.544 2008/03/04 12:00:36 amosjeffries Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -2829,7 +2829,7 @@ parse_http_port_specification(http_port_list * s, char *token) char *junk = NULL; s->disable_pmtu_discovery = DISABLE_PMTU_OFF; - s->name = strdup(token); + s->name = xstrdup(token); #if USE_IPV6 if (*token == '[') {