MINOR: proxy: check if p is NULL in free_proxy()

Check if p is NULL before trying to do anything  in free_proxy(),
like most free()-like function do.
This commit is contained in:
William Lallemand 2021-08-20 10:16:37 +02:00
parent 4c395fce21
commit b0281a4903

View File

@ -144,6 +144,9 @@ void free_proxy(struct proxy *p)
struct proxy_deinit_fct *pxdf;
struct server_deinit_fct *srvdf;
if (!p)
return;
free(p->conf.file);
free(p->id);
free(p->cookie_name);