Libunit: fixing read buffer allocations on exit.

This commit is contained in:
Max Romanov
2020-11-18 22:33:53 +03:00
parent 6c3c83561a
commit 66bb41e8bb

View File

@@ -5029,12 +5029,12 @@ retry:
nxt_unit_process_ready_req(ctx);
rbuf = nxt_unit_read_buf_get(ctx);
if (nxt_slow_path(rbuf == NULL)) {
return NXT_UNIT_ERROR;
}
if (ctx_impl->online) {
rbuf = nxt_unit_read_buf_get(ctx);
if (nxt_slow_path(rbuf == NULL)) {
return NXT_UNIT_ERROR;
}
goto retry;
}