Libunit: fixing read buffer allocations on exit.
This commit is contained in:
@@ -5029,12 +5029,12 @@ retry:
|
|||||||
|
|
||||||
nxt_unit_process_ready_req(ctx);
|
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) {
|
if (ctx_impl->online) {
|
||||||
|
rbuf = nxt_unit_read_buf_get(ctx);
|
||||||
|
if (nxt_slow_path(rbuf == NULL)) {
|
||||||
|
return NXT_UNIT_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user