mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 05:41:26 +02:00
BUG/MINOR: snapshots: leak of snapshots on deinit()
Free the snapshots on deinit() when they were initialized in a proxy upon an error. This was introduced by c55015e ("MEDIUM: snapshots: dynamically allocate the snapshots"). Should be backported as far as 1.9.
This commit is contained in:
parent
6ad7df423b
commit
efc5a9d55b
@ -2620,6 +2620,8 @@ void deinit(void)
|
|||||||
free(p->capture_name);
|
free(p->capture_name);
|
||||||
free(p->monitor_uri);
|
free(p->monitor_uri);
|
||||||
free(p->rdp_cookie_name);
|
free(p->rdp_cookie_name);
|
||||||
|
free(p->invalid_rep);
|
||||||
|
free(p->invalid_req);
|
||||||
if (p->conf.logformat_string != default_http_log_format &&
|
if (p->conf.logformat_string != default_http_log_format &&
|
||||||
p->conf.logformat_string != default_tcp_log_format &&
|
p->conf.logformat_string != default_tcp_log_format &&
|
||||||
p->conf.logformat_string != clf_http_log_format)
|
p->conf.logformat_string != clf_http_log_format)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user