BUG/MINOR: proxy: add missing interface bind free in free_proxy
bind->settings.interface hint is allocated when "interface" keyword is specified on a bind line, but the string isn't explicitly freed in proxy_free, resulting in minor memory leak on deinit paths when the keyword is being used. It partially fixes GH #2173 and may be backported to all stable versions. [in 2.2 free_proxy did not exist so the patch must be applied directly in deinit() function from haproxy.c]
This commit is contained in:
parent
c49224a29d
commit
9be9225ef2
@ -327,6 +327,7 @@ void free_proxy(struct proxy *p)
|
||||
bind_conf->xprt->destroy_bind_conf(bind_conf);
|
||||
free(bind_conf->file);
|
||||
free(bind_conf->arg);
|
||||
free(bind_conf->settings.interface);
|
||||
LIST_DELETE(&bind_conf->by_fe);
|
||||
free(bind_conf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user