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:
Dragan Dosen 2025-02-26 22:56:41 +01:00 committed by Willy Tarreau
parent 6838fe43a3
commit 0ae7a5d672

View File

@ -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);