diff options
author | Zhidao HONG <z.hong@f5.com> | 2023-01-30 11:16:01 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2023-01-30 11:16:01 +0800 |
commit | 1f37d8121a3dfc2f039b859835c4ec22e77f01c9 (patch) | |
tree | b430de5baaf62bcbdaf6708dc54ba08809857f01 /src/nxt_http_request.c | |
parent | b2d19155787e7dd85f0a915bb74d4c9aa2cd91d6 (diff) | |
download | unit-1f37d8121a3dfc2f039b859835c4ec22e77f01c9.tar.gz unit-1f37d8121a3dfc2f039b859835c4ec22e77f01c9.tar.bz2 |
NJS: adding the missing vm destruction.
This commit fixed the njs memory leak happened in the config validation, updating and http requests.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 73ffd2f0..e78975aa 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -833,6 +833,10 @@ nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data) r->body->file->fd = -1; } + if (r->tstr_query != NULL) { + nxt_tstr_query_release(r->tstr_query); + } + if (nxt_fast_path(proto.any != NULL)) { protocol = r->protocol; |