Commit 4c4ef960 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Properly clean up if we bail out of cnt_error because we cannot allocate

an object.

Fixes	#985
parent 460b1d14
......@@ -424,6 +424,10 @@ cnt_error(struct sess *sp)
1024, &w->exp, (uint16_t)params->http_max_hdr);
if (sp->obj == NULL) {
sp->doclose = "Out of objects";
sp->director = NULL;
sp->wrk->h_content_length = NULL;
http_Setup(sp->wrk->beresp, NULL);
http_Setup(sp->wrk->bereq, NULL);
sp->step = STP_DONE;
return(0);
}
......
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