Commit 2befbaf9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a missing WS_Release()

parent 94f44647
......@@ -143,6 +143,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re,
i = VRE_exec(t, str, len, 0, options, ovector, 30,
&params->vre_limits);
if (i < VRE_ERROR_NOMATCH ) {
WS_Release(sp->http->ws, 0);
WSP(sp, SLT_VCL_Error,
"Regexp matching returned %d", i);
return(str);
......
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