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.
This commit is contained in:
Aurelien DARRAGON 2024-06-10 19:36:53 +02:00
parent 1aa219078d
commit 847c406b9a

View File

@ -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);