Commit 7c136a73 authored by Geoff Simmons's avatar Geoff Simmons

reclaim all workspace in the match() method if the match fails

parent e65ac0a6
......@@ -177,8 +177,8 @@ vmod_regex_match(const struct vrt_ctx *ctx, struct vmod_re2_regex *re,
if (match)
AZ(pthread_setspecific(re->matchk, group));
else if (group != NULL)
WS_Reset(ctx->ws, group);
else
WS_Reset(ctx->ws, text);
return match;
#undef ERR_PREFIX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment