[experimental-ims] c2a2576 Make sure to free workers cached busyobj when threads are reaped.

Geoff Simmons geoff at varnish-cache.org
Tue Feb 14 17:49:28 CET 2012


commit c2a2576ca15d3bdbdf0b151383833332f0be1f22
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Feb 9 07:58:04 2012 +0000

    Make sure to free workers cached busyobj when threads are reaped.

diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index 32ad21d..c1d20e8 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -163,6 +163,8 @@ wrk_thread_real(void *priv, unsigned shm_workspace, unsigned sess_workspace,
 	if (w->vcl != NULL)
 		VCL_Rel(&w->vcl);
 	AZ(pthread_cond_destroy(&w->cond));
+	if (w->nvbo != NULL)
+		VBO_Free(&w->nvbo);
 	HSH_Cleanup(w);
 	WRK_SumStat(w);
 	return (NULL);



More information about the varnish-commit mailing list