From 99fd4572cb9c19e40c247caf042d2a9558d045b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Tue, 30 Oct 2012 23:57:48 +0100 Subject: [PATCH] missing close() call in utils/uwsgi_num_from_file() --- core/utils.c | 1 + 1 file changed, 1 insertion(+) 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);