Commit eb975f80 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

When a workerthread dies of old age, make sure to nuke the mutex it may

have in its cached nobjhead.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1991 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bbc3be6f
......@@ -256,8 +256,10 @@ wrk_thread(void *priv)
AZ(close(w->pipe[1]));
if (w->srcaddr != NULL)
free(w->srcaddr);
if (w->nobjhead != NULL)
if (w->nobjhead != NULL) {
MTX_DESTROY(&w->nobjhead->mtx);
FREE_OBJ(w->nobjhead);
}
if (w->nobj!= NULL)
FREE_OBJ(w->nobj);
return (NULL);
......
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