]> err.no Git - varnish/commitdiff
The call to HSH_Freestore() is redundant; in pass mode, there are no other
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 25 May 2007 10:06:50 +0000 (10:06 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 25 May 2007 10:06:50 +0000 (10:06 +0000)
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

varnish-cache/bin/varnishd/cache_center.c

index 2fb00468b9ca14db42e033878de8d66e64ffbbe7..18e131db66fef77eb402e84cdae32fb20eb290e5 100644 (file)
@@ -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;