From 2a7c20f602e5d40e9f23c703fbcb12e3af762337 Mon Sep 17 00:00:00 2001 From: Dragan Dosen Date: Tue, 30 Apr 2019 00:38:36 +0200 Subject: [PATCH] BUG/MINOR: haproxy: fix rule->file memory leak When using the "use_backend" configuration directive, the configuration file name stored as rule->file was not freed in some situations. This was introduced in commit 4ed1c95 ("MINOR: http/conf: store the use_backend configuration file and line for logs"). This patch should be backported to 1.9, 1.8 and 1.7. --- src/haproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 4c5c8391d..ec6610325 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2223,8 +2223,8 @@ void deinit(void) if (rule->cond) { prune_acl_cond(rule->cond); free(rule->cond); - free(rule->file); } + free(rule->file); free(rule); }