r1569 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Mon Jun 25 18:25:29 CEST 2007


Author: des
Date: 2007-06-25 18:25:29 +0200 (Mon, 25 Jun 2007)
New Revision: 1569

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Use FREE_OBJ() instead of just free() when freeing miniobjs.


Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-06-25 16:24:18 UTC (rev 1568)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-06-25 16:25:29 UTC (rev 1569)
@@ -258,7 +258,7 @@
 		free(o->vary);
 
 	HSH_Freestore(o);
-	free(o);
+	FREE_OBJ(o);
 	VSL_stats->n_object--;
 
 	if (oh == NULL)
@@ -269,7 +269,7 @@
 	assert(TAILQ_EMPTY(&oh->objects));
 	MTX_DESTROY(&oh->mtx);
 	VSL_stats->n_objecthead--;
-	free(oh);
+	FREE_OBJ(oh);
 }
 
 void




More information about the varnish-commit mailing list