BUG/MINOR: config: Fix memory leak on config parse listen
This memory leak happens if there is two or more defaults section. When
the default proxy is reinitialized, the structure member containing the
config filename must be freed.
Fix github issue #851.
Should be backported as far as 1.6.
diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c
index bbdf699..cdfca5b 100644
--- a/src/cfgparse-listen.c
+++ b/src/cfgparse-listen.c
@@ -479,6 +479,7 @@
goto out;
}
+ free(defproxy.conf.file);
free(defproxy.check_command);
free(defproxy.check_path);
free(defproxy.cookie_name);