Skip to content

Commit

Permalink
SQUASHME: missing workspace release
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Jun 25, 2024
1 parent 6dbb1f2 commit 5f4f8dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/varnishd/cache/cache_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ HTC_RxInit(struct http_conn *htc, struct ws *ws)
*/
rollback = !strcasecmp(ws->id, "req") && htc->body_status == NULL;
l = WS_Pipeline(htc->ws, htc->pipeline_b, htc->pipeline_e, rollback);
if (l < 0)
if (l < 0) {
WS_Release(htc->ws, 0);
return (-1);
}

htc->rxbuf_b = WS_Reservation(ws);
htc->rxbuf_e = htc->rxbuf_b + l;
Expand Down

0 comments on commit 5f4f8dd

Please sign in to comment.