diff --git a/core/utils.c b/core/utils.c index dbe5f5fd..ccc7aa88 100644 --- a/core/utils.c +++ b/core/utils.c @@ -852,6 +852,7 @@ long uwsgi_num_from_file(char *filename) { len = read(fd, buf, sizeof(buf)); if (len == 0) { uwsgi_log("read error %s\n", filename); + close(fd); return -1L; } close(fd);