diff --git a/src/http_act.c b/src/http_act.c index b370861fd..64802a866 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -1769,6 +1769,8 @@ static void release_http_redir(struct act_rule *rule) free(redir->cookie_str); list_for_each_entry_safe(lf, lfb, &redir->rdr_fmt, list) { LIST_DELETE(&lf->list); + release_sample_expr(lf->expr); + free(lf->arg); free(lf); } free(redir); diff --git a/src/proxy.c b/src/proxy.c index 93770a16e..dbd122a80 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -243,6 +243,8 @@ void free_proxy(struct proxy *p) free(rdr->rdr_str); list_for_each_entry_safe(lf, lfb, &rdr->rdr_fmt, list) { LIST_DELETE(&lf->list); + release_sample_expr(lf->expr); + free(lf->arg); free(lf); } free(rdr);