mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-20 22:01:49 -04:00
BUG/MINOR: proxy: fix check_{command,path} leak on deinit()
proxy check_{command,path} members (used for "external-check" feature)
weren't cleaned up in free_proxy(), resulting in small memory leak if
"external-check command" or "external-check path" were used on a regular
or default proxy.
It may be backported to all stable versions.
This commit is contained in:
parent
fa90a7d313
commit
62d0465a96
1 changed files with 2 additions and 0 deletions
|
|
@ -219,6 +219,8 @@ void free_proxy(struct proxy *p)
|
|||
free(p->capture_name);
|
||||
istfree(&p->monitor_uri);
|
||||
istfree(&p->server_id_hdr_name);
|
||||
ha_free(&p->check_command);
|
||||
ha_free(&p->check_path);
|
||||
free(p->rdp_cookie_name);
|
||||
free_email_alert(p);
|
||||
free(p->invalid_rep);
|
||||
|
|
|
|||
Loading…
Reference in a new issue