mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 22:23:49 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user