MINOR: server: check if srv is NULL in free_server()

Check if srv is NULL before trying to do anything  in free_server(),
like most free()-like function do.
This commit is contained in:
William Lallemand 2021-08-20 10:10:15 +02:00
parent f95c29546c
commit 4c395fce21

View File

@ -2216,6 +2216,9 @@ static uint srv_release_dynsrv(struct server *srv)
*/
void free_server(struct server *srv)
{
if (!srv)
return;
/* For dynamic servers, decrement the reference counter. Only free the
* server when reaching zero.
*/