]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: tcpcheck: Fix a leak on deinit by releasing ruleset's conf.file
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 07:20:43 +0000 (09:20 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:49:13 +0000 (10:49 +0200)
Now healthcheck sections are supported, a ruleset can reference a
configuration file that must be freed on deinit. So let's do so.

No backport needed.

src/tcpcheck.c

index 65adbceeaa0bb0393503742dc171001d85fe52cf..28ffd8c74696fd19b48e094bc7c0a6bc67878073 100644 (file)
@@ -335,6 +335,7 @@ void free_tcpcheck_ruleset(struct tcpcheck_ruleset *rs)
                LIST_DELETE(&r->list);
                free_tcpcheck(r, 0);
        }
+       free((char*)rs->conf.file);
        free(rs);
 }