diff --git a/src/http_act.c b/src/http_act.c index 5582085d4..fb77f801b 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 8bcc98c0d..e53cc4f72 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -244,6 +244,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);