Commit 0938a2ed authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Drop the body of hit-for-pass objects once we have delivered them to

the original requester.

Submitted by:	DocWilco
parent f262a571
......@@ -276,6 +276,13 @@ cnt_deliver(struct sess *sp)
RES_WriteObj(sp);
/* No point in saving the body if it is hit-for-pass */
if (sp->obj->objcore != NULL) {
CHECK_OBJ_NOTNULL(sp->obj->objcore, OBJCORE_MAGIC);
if (sp->obj->objcore->flags & OC_F_PASS)
STV_Freestore(sp->obj);
}
assert(WRW_IsReleased(sp->wrk));
assert(sp->wrk->wrw.ciov == sp->wrk->wrw.siov);
(void)HSH_Deref(sp->wrk, NULL, &sp->obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment