aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index 5b20a084..68592ad2 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -3469,7 +3469,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf)
size_t size;
u_char *start, *end, *p;
- ngx_fd_t fd;
ngx_str_t *m, file;
njs_int_t rc;
njs_str_t text, path;
@@ -3488,7 +3487,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf)
}
size = 0;
- fd = NGX_INVALID_FILE;
import = jmcf->imports->elts;
for (i = 0; i < jmcf->imports->nelts; i++) {
@@ -3498,10 +3496,6 @@ ngx_http_js_init_main_conf(ngx_conf_t *cf, void *conf)
start = ngx_pnalloc(cf->pool, size);
if (start == NULL) {
- if (fd != NGX_INVALID_FILE) {
- (void) ngx_close_file(fd);
- }
-
return NGX_CONF_ERROR;
}