mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-19 12:06:36 +00:00
missing close() call in utils/uwsgi_num_from_file()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user