summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r--src/nxt_http_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 1f7a1796..394411a9 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -570,9 +570,9 @@ nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data)
if (nxt_fast_path(proto.any != NULL)) {
protocol = r->protocol;
- nxt_mp_release(r->mem_pool);
-
nxt_http_proto[protocol].close(task, proto, conf);
+
+ nxt_mp_release(r->mem_pool);
}
}