From 69d47c9152c3ee824e18e8567731d85ecff71a5e Mon Sep 17 00:00:00 2001 From: des Date: Fri, 25 May 2007 10:06:50 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_center.c | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.39.5