From 61831b4a25a08d38be780e9edaeeb6d34a7aad3a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 27 Jan 2009 01:04:09 +1300 Subject: [PATCH] Fix memory leak from logformat parsing --- src/cache_cf.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 73fcb4e789..c81d800856 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -3463,6 +3463,7 @@ free_logformat(logformat ** definitions) while (*definitions) { logformat *format = *definitions; *definitions = format->next; + safe_free(format->name); accessLogFreeLogFormat(&format->format); xfree(format); } -- 2.47.3