mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02: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
@ -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 New Issue
Block a user