mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-01 11:15:57 +00:00
fixed a typo and an fd leak spotted by riccardo
This commit is contained in:
@@ -370,6 +370,7 @@ PyObject *uwsgi_pyimport_by_filename(char *name, char *filename) {
|
||||
}
|
||||
|
||||
if (fstat(fileno(pyfile), &pystat)) {
|
||||
fclose(pyfile);
|
||||
uwsgi_error("fstat()");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user