summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2021-10-04 15:33:04 +0300
committerValentin Bartenev <vbart@nginx.com>2021-10-04 15:33:04 +0300
commit9baf22e7bf2fe66efd85f7a402f5e71c51d6d768 (patch)
tree28eb99b8f1cf6068442641da2067999224acb660
parent95e653590927bfdb6919a8652ef62824cc6c9538 (diff)
downloadunit-9baf22e7bf2fe66efd85f7a402f5e71c51d6d768.tar.gz
unit-9baf22e7bf2fe66efd85f7a402f5e71c51d6d768.tar.bz2
Static: fixed possible descriptor leak introduced in a946d8cd7f8c.
-rw-r--r--src/nxt_http_static.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c
index 06e0cab2..5380ff23 100644
--- a/src/nxt_http_static.c
+++ b/src/nxt_http_static.c
@@ -494,6 +494,7 @@ nxt_http_static_send_ready(nxt_task_t *task, void *obj, void *data)
f = nxt_mp_get(r->mem_pool, sizeof(nxt_file_t));
if (nxt_slow_path(f == NULL)) {
+ nxt_file_close(task, &file);
goto fail;
}