From: Amaury Denoyelle Date: Tue, 20 Apr 2021 15:05:47 +0000 (+0200) Subject: BUG/MINOR: logs: free logsrv.conf.file on exit X-Git-Tag: v2.4-dev17~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d688e01032737ce302ba22315110013f25eb034f;p=thirdparty%2Fhaproxy.git BUG/MINOR: logs: free logsrv.conf.file on exit Config information has been added into the logsrv struct. The filename is duplicated and should be freed on exit. Introduced in the current release. This does not need to be backported. --- diff --git a/src/haproxy.c b/src/haproxy.c index 0e86586b81..7dc1e830b3 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2278,6 +2278,7 @@ void deinit(void) list_for_each_entry_safe(log, logb, &global.logsrvs, list) { LIST_DELETE(&log->list); + free(log->conf.file); free(log); } list_for_each_entry_safe(wl, wlb, &cfg_cfgfiles, list) {