missing close() call in utils/uwsgi_num_from_file()

This commit is contained in:
Łukasz Mierzwa
2012-10-30 23:57:48 +01:00
parent d3194ca011
commit 99fd4572cb
+1
View File
@@ -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);