From: Amos Jeffries Date: Mon, 2 Feb 2009 11:54:49 +0000 (+1300) Subject: Fix memory leak from logformat parsing X-Git-Tag: SQUID_3_0_STABLE13~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efc9d0c574288ab4988e778d80481e5c7d143d01;p=thirdparty%2Fsquid.git Fix memory leak from logformat parsing --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 39aabc98c3..5f7185ab71 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -3362,6 +3362,7 @@ free_logformat(logformat ** definitions) while (*definitions) { logformat *format = *definitions; *definitions = format->next; + safe_free(format->name); accessLogFreeLogFormat(&format->format); xfree(format); }