From: des Date: Fri, 25 May 2007 10:06:50 +0000 (+0000) Subject: The call to HSH_Freestore() is redundant; in pass mode, there are no other X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d47c9152c3ee824e18e8567731d85ecff71a5e;p=varnish 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. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1475 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 2fb00468..18e131db 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -140,10 +140,6 @@ cnt_deliver(struct sess *sp) { 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;