[3.0] 37b7329 Add a missing WS_Release()
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Apr 16 10:20:36 CEST 2012
commit 37b7329b312d45525d12cded3565e1c2e113fd29
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Nov 8 14:50:11 2011 +0000
Add a missing WS_Release()
diff --git a/bin/varnishd/cache_vrt_re.c b/bin/varnishd/cache_vrt_re.c
index fe6b814..f2db178 100644
--- a/bin/varnishd/cache_vrt_re.c
+++ b/bin/varnishd/cache_vrt_re.c
@@ -148,6 +148,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re,
i = VRE_exec(t, str, len, 0, options, ovector, 30,
¶ms->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);
More information about the varnish-commit
mailing list