r321 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Jul 5 12:59:31 CEST 2006


Author: phk
Date: 2006-07-05 12:59:31 +0200 (Wed, 05 Jul 2006)
New Revision: 321

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Free the right header.


Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2006-07-05 10:55:46 UTC (rev 320)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2006-07-05 10:59:31 UTC (rev 321)
@@ -110,6 +110,7 @@
 	if (o == NULL)
 		return;
 
+	free(o->header);
 	AZ(pthread_cond_destroy(&o->cv));
 
 	TAILQ_FOREACH_SAFE(st, &o->store, list, stn) {
@@ -123,7 +124,6 @@
 		return;
 	assert(TAILQ_EMPTY(&oh->objects));
 	AZ(pthread_mutex_destroy(&oh->mtx));
-	free(oh->header);
 	free(oh);
 }
 




More information about the varnish-commit mailing list