This could be useful for some HTTP actions. It was possible to rely on a
log-format string. It is now possible to also use a sample expression.
struct ist str; /* string param (reason, header name, ...) */
struct lf_expr fmt; /* log-format compatible expression */
struct my_regex *re; /* used by replace-header/value/uri/path */
+ struct sample_expr *expr; /* sample expression used by HTTP action */
} http; /* args used by some HTTP rules */
struct http_reply *http_reply; /* HTTP response to be used by return/deny/tarpit rules */
struct redirect_rule *redir; /* redirect rule or "http-request redirect" */
if (rule->arg.http.re)
regex_free(rule->arg.http.re);
lf_expr_deinit(&rule->arg.http.fmt);
+ release_sample_expr(rule->arg.http.expr);
}
/* Release memory allocated by HTTP actions relying on an http reply. Concretely,