mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
BUG/MINOR: server: add missing free for server->rdr_pfx
rdr_pfx was not being free during server cleanup, leading to small memory leak when "redir" argument was used on a server line (HTTP only). This should be backported to every stable versions. [For 2.6 and 2.7: the free should be performed in srv_drop() directly. For older versions: free in deinit() function near the free for the cookie string]
This commit is contained in:
parent
6cbb5a057b
commit
2c9bd3ae80
1 changed files with 1 additions and 0 deletions
|
|
@ -2471,6 +2471,7 @@ void srv_take(struct server *srv)
|
|||
void srv_free_params(struct server *srv)
|
||||
{
|
||||
free(srv->cookie);
|
||||
free(srv->rdr_pfx);
|
||||
free(srv->hostname);
|
||||
free(srv->hostname_dn);
|
||||
free((char*)srv->conf.file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue