r2614 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Mar 31 13:49:21 CEST 2008


Author: phk
Date: 2008-03-31 13:49:20 +0200 (Mon, 31 Mar 2008)
New Revision: 2614

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Fix a memoryleak relating to hash strings, found by: Arjan (noosius).



Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2008-03-31 11:47:15 UTC (rev 2613)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2008-03-31 11:49:20 UTC (rev 2614)
@@ -383,6 +383,7 @@
 	assert(VTAILQ_EMPTY(&oh->objects));
 	MTX_DESTROY(&oh->mtx);
 	VSL_stats->n_objecthead--;
+	free(oh->hash);
 	FREE_OBJ(oh);
 }
 




More information about the varnish-commit mailing list