cnt_deliver()

Dag-Erling Smørgrav des at linpro.no
Thu May 24 17:14:38 CEST 2007


from cnt_deliver():

	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;

isn't this redundant?  In the PASS case, there are no other references
to the object, and HSH_Deref() will call HSH_Freestore().

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list