BUG/MINOR: proxy: fix log_tag leak on deinit()

proxy log_tag wasn't cleaned up in free_proxy(), resulting in small
memory leak if "log-tag" was used on a regular or default proxy.

It may be backported to all stable versions.
This commit is contained in:
Aurelien DARRAGON 2024-06-10 15:54:49 +02:00
parent 99f3409582
commit 77b192ea36

View File

@ -266,6 +266,8 @@ void free_proxy(struct proxy *p)
free_logger(log);
}
chunk_destroy(&p->log_tag);
lf_expr_deinit(&p->logformat);
lf_expr_deinit(&p->logformat_sd);
lf_expr_deinit(&p->format_unique_id);