Commit 309e4910 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remember to reset te bereq's workspace after use.

NB: This should be merged back to 1.1



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2181 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 90391b29
...@@ -161,6 +161,7 @@ VBE_free_bereq(struct bereq *bereq) ...@@ -161,6 +161,7 @@ VBE_free_bereq(struct bereq *bereq)
{ {
CHECK_OBJ_NOTNULL(bereq, BEREQ_MAGIC); CHECK_OBJ_NOTNULL(bereq, BEREQ_MAGIC);
WS_Reset(bereq->ws, NULL);
LOCK(&VBE_mtx); LOCK(&VBE_mtx);
VTAILQ_INSERT_HEAD(&bereq_head, bereq, list); VTAILQ_INSERT_HEAD(&bereq_head, bereq, list);
UNLOCK(&VBE_mtx); UNLOCK(&VBE_mtx);
......
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