Merge pull request #39 from prymitive/cppcheck

missing close() call in utils/uwsgi_num_from_file()
This commit is contained in:
unbit
2012-10-31 02:29:54 -07:00
+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);