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
@ -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…
x
Reference in New Issue
Block a user