summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-10-04 15:00:35 +0300
committerMax Romanov <max.romanov@nginx.com>2017-10-04 15:00:35 +0300
commit730f5a9dd9b3674246d06d18e05c8899e018ef5f (patch)
treec4769942a0510eb5f802e4c1845dceaca2d3588b /src/nxt_application.c
parenta4b5b5d45d26077ac822b25d5d26f58661c02dcf (diff)
downloadunit-730f5a9dd9b3674246d06d18e05c8899e018ef5f.tar.gz
unit-730f5a9dd9b3674246d06d18e05c8899e018ef5f.tar.bz2
Using request mem pool for req<->app link.
Request <-> application link structure (nxt_req_app_link_t) used to register the request in application request queue (nxt_app_t.requests) and generate application-specific port message. Now it is allocated from request pool. This pool created for request parsing and used to allocate and store information specific to this request.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index 3b87dbf0..36e855b8 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -893,7 +893,7 @@ nxt_app_http_req_body_read(nxt_task_t *task, nxt_app_parse_ctx_t *ctx,
nxt_int_t
nxt_app_http_req_done(nxt_task_t *task, nxt_app_parse_ctx_t *ctx)
{
- nxt_mp_destroy(ctx->mem_pool);
+ nxt_mp_release(ctx->mem_pool, NULL);
return NXT_OK;
}