diff --git a/src/haproxy.c b/src/haproxy.c index e8cbdf410..5ae21824a 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2637,6 +2637,8 @@ void deinit(void) }/* end while(p) */ while (ua) { + struct stat_scope *scope, *scopep; + uap = ua; ua = ua->next; @@ -2648,6 +2650,15 @@ void deinit(void) userlist_free(uap->userlist); deinit_act_rules(&uap->http_req_rules); + scope = uap->scope; + while (scope) { + scopep = scope; + scope = scope->next; + + free(scopep->px_id); + free(scopep); + } + free(uap); }