Mailing List Archive

r1475 - trunk/varnish-cache/bin/varnishd
Author: des
Date: 2007-05-25 12:06:50 +0200 (Fri, 25 May 2007)
New Revision: 1475

Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
The call to HSH_Freestore() is redundant; in pass mode, there are no other
references to the object, so HSH_Deref() will free its storage.


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2007-05-25 10:00:38 UTC (rev 1474)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2007-05-25 10:06:50 UTC (rev 1475)
@@ -140,10 +140,6 @@
{

RES_WriteObj(sp);
- if (sp->obj->objhead != NULL && sp->obj->pass) {
- /* we will no longer need the storage */
- HSH_Freestore(sp->obj);
- }
HSH_Deref(sp->obj);
sp->obj = NULL;
sp->step = STP_DONE;