diff --git a/src/proxy.c b/src/proxy.c index dab4c5e9a..c6c4eb293 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -3562,7 +3562,7 @@ struct proxy *parse_new_proxy(const char *name, unsigned int cap, ha_alert("parsing [%s:%d] : %s\n", file, linenum, errmsg); free(errmsg); - ha_free(&curproxy); + proxy_drop(curproxy); return NULL; } }