mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
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.
This commit is contained in:
parent
1aab911017
commit
36b536652f
1 changed files with 1 additions and 0 deletions
|
|
@ -479,6 +479,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
|
|||
goto out;
|
||||
}
|
||||
|
||||
free(defproxy.conf.file);
|
||||
free(defproxy.check_command);
|
||||
free(defproxy.check_path);
|
||||
free(defproxy.cookie_name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue