]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] Free rdp_cookie_name on denint()
authorSimon Horman <horms@verge.net.au>
Fri, 15 Jul 2011 04:14:08 +0000 (13:14 +0900)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 Jul 2011 08:21:23 +0000 (10:21 +0200)
The motivation for this is that when soft-restart is merged
it will be come more important to free all relevant memory in deinit()

Discovered using valgrind.

src/haproxy.c

index 915f47a73b9f42823fc40beeba4e6fabc848075c..321769515be3b1f4a608ae221fc23384d9cbf394 100644 (file)
@@ -697,6 +697,7 @@ void deinit(void)
                free(p->url_param_name);
                free(p->capture_name);
                free(p->monitor_uri);
+               free(p->rdp_cookie_name);
 
                for (i = 0; i < HTTP_ERR_SIZE; i++)
                        chunk_destroy(&p->errmsg[i]);