]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: logs: free logsrv.conf.file on exit
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Apr 2021 15:05:47 +0000 (17:05 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 21 Apr 2021 09:00:29 +0000 (11:00 +0200)
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.

src/haproxy.c

index 0e86586b816422b4b41d732896cf090dd07172b7..7dc1e830b396915bc7c5963f1bb9ab54206c0750 100644 (file)
@@ -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) {