Commit 7653a6a5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dispose of VCL reference count if we drop parked sessions due to worker

pool shortages.

Fixes ticket #213


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2529 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 51b5e0be
......@@ -316,6 +316,13 @@ WRK_QueueSession(struct sess *sp)
UNLOCK(&tmtx);
sp->t_end = TIM_real();
vca_close_session(sp, "dropped");
if(sp->vcl != NULL) {
/*
* A session parked on a busy object can come here
* after it wakes up. Loose the VCL reference.
*/
VCL_Rel(&sp->vcl);
}
SES_Delete(sp);
return;
}
......
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