Skip to content

Commit cc722a3

Browse files
Darleletcapflam
authored andcommitted
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. (cherry picked from commit 77b192e) Signed-off-by: Christopher Faulet <[email protected]>
1 parent 67d4a95 commit cc722a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/proxy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ void free_proxy(struct proxy *p)
266266
free_logger(log);
267267
}
268268

269+
chunk_destroy(&p->log_tag);
270+
269271
lf_expr_deinit(&p->logformat);
270272
lf_expr_deinit(&p->logformat_sd);
271273
lf_expr_deinit(&p->format_unique_id);

0 commit comments

Comments
 (0)