From b2d797a53fc7775773a539d2b72268e5125c2903 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Wed, 28 Dec 2022 12:18:15 +0100 Subject: [PATCH] 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. --- src/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proxy.c b/src/proxy.c index 1279da6..8bcc98c 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -350,6 +350,7 @@ void free_proxy(struct proxy *p) free(p->desc); istfree(&p->fwdfor_hdr_name); + istfree(&p->orgto_hdr_name); task_destroy(p->task); -- 1.7.10.4