mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: server: fix the "server-template" prefix memory leak
The srv->tmpl_info.prefix was not freed in srv_free_params(). This could be backported to all stable versions.
This commit is contained in:
parent
6838fe43a3
commit
0ae7a5d672
1 changed files with 1 additions and 0 deletions
|
|
@ -3061,6 +3061,7 @@ void srv_free_params(struct server *srv)
|
|||
deinit_log_target(srv->log_target);
|
||||
free(srv->log_target);
|
||||
}
|
||||
free(srv->tmpl_info.prefix);
|
||||
|
||||
if (xprt_get(XPRT_SSL) && xprt_get(XPRT_SSL)->destroy_srv)
|
||||
xprt_get(XPRT_SSL)->destroy_srv(srv);
|
||||
|
|
|
|||
Loading…
Reference in a new issue