fixed a typo and an fd leak spotted by riccardo

This commit is contained in:
roberto@quantal64
2012-07-08 21:31:09 +02:00
parent 1c022ee01d
commit b3c9c5057f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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;
}