From: phk Date: Mon, 29 Oct 2007 09:16:13 +0000 (+0000) Subject: Remember to reset te bereq's workspace after use. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ce047b5ef487e700d5cde83ab7625314e314d29;p=varnish Remember to reset te bereq's workspace after use. NB: This should be merged back to 1.1 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2181 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_backend.c b/varnish-cache/bin/varnishd/cache_backend.c index c2c8f283..1b2b9ca4 100644 --- a/varnish-cache/bin/varnishd/cache_backend.c +++ b/varnish-cache/bin/varnishd/cache_backend.c @@ -161,6 +161,7 @@ VBE_free_bereq(struct bereq *bereq) { CHECK_OBJ_NOTNULL(bereq, BEREQ_MAGIC); + WS_Reset(bereq->ws, NULL); LOCK(&VBE_mtx); VTAILQ_INSERT_HEAD(&bereq_head, bereq, list); UNLOCK(&VBE_mtx);