]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: proxy: fix dyncookie_key leak on deinit()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 10 Jun 2024 16:48:49 +0000 (18:48 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 08:59:27 +0000 (10:59 +0200)
proxy dyncookie_key wasn't cleaned up in free_proxy(), resulting in small
memory leak if "dynamic-cookie-key" was used on a regular or default
proxy.

It may be backported to all stable versions.

src/proxy.c

index 4754624ec17a44c114030bdc0b893f596e4f4af4..4e14e2fe0b6ed046c1750c14b54884ae84a5f247 100644 (file)
@@ -221,6 +221,7 @@ void free_proxy(struct proxy *p)
        istfree(&p->server_id_hdr_name);
        ha_free(&p->check_command);
        ha_free(&p->check_path);
+       ha_free(&p->dyncookie_key);
        free(p->rdp_cookie_name);
        free_email_alert(p);
        free(p->invalid_rep);