From 847c406b9a040193c374daad3269d646dda7dbcc Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Mon, 10 Jun 2024 19:36:53 +0200 Subject: [PATCH] BUG/MINOR: proxy: fix header_unique_id leak on deinit() proxy header_unique_id wasn't cleaned up in proxy_free_defaults(), resulting in small memory leak if "unique-id-header" was used on a default proxy section. It may be backported to all stable versions. --- src/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proxy.c b/src/proxy.c index f0e4755b9..a89043afa 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1458,6 +1458,7 @@ void proxy_free_defaults(struct proxy *defproxy) #if defined(CONFIG_HAP_TRANSPARENT) ha_free(&defproxy->conn_src.bind_hdr_name); #endif + istfree(&defproxy->header_unique_id); istfree(&defproxy->server_id_hdr_name); http_ext_clean(defproxy);