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:
parent
4c395fce21
commit
b0281a4903
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user