commit | b0281a490359d00356c81dc53f09e9aa0f5fbda5 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Fri Aug 20 10:16:37 2021 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Fri Aug 20 10:20:56 2021 +0200 |
tree | a73c774b93623a9ad54860b61c6b830a7c58fdf7 | |
parent | 4c395fce21c55e16036d10d3aa80de9dcfc3efe0 [diff] [blame] |
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.
diff --git a/src/proxy.c b/src/proxy.c index 237f297..87999ad 100644 --- a/src/proxy.c +++ b/src/proxy.c
@@ -144,6 +144,9 @@ struct proxy_deinit_fct *pxdf; struct server_deinit_fct *srvdf; + if (!p) + return; + free(p->conf.file); free(p->id); free(p->cookie_name);