BUG/MINOR: proxy: free orgto_hdr_name in free_proxy()

Unlike fwdfor_hdr_name, orgto_hdr_name was not properly freed in
free_proxy().

This did not cause observable memory leaks because originalto proxy option is
only used for user configurable proxies, which are solely freed right before
process termination.
No backport needed unless some architectural changes causing regular proxies
to be freed and reused multiple times within single process lifetime are made.

(cherry picked from commit b2d797a53fc7775773a539d2b72268e5125c2903)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 545f8a12c46174f50ddf6dfe0c8b1b3f379b12c2)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
This commit is contained in:
Aurelien DARRAGON 2022-12-28 12:18:15 +01:00 committed by Christopher Faulet
parent ff7ada7d7a
commit 3fcf827712

View File

@ -349,6 +349,7 @@ void free_proxy(struct proxy *p)
free(p->desc);
istfree(&p->fwdfor_hdr_name);
istfree(&p->orgto_hdr_name);
task_destroy(p->task);