Kaydet (Commit) e545ff30 authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix Coverity 168: Close the file before returning (exiting).

üst 088beae1
......@@ -416,6 +416,7 @@ Py_Main(int argc, char **argv)
if (fstat(fileno(fp), &sb) == 0 &&
S_ISDIR(sb.st_mode)) {
fprintf(stderr, "%s: '%s' is a directory, cannot continue\n", argv[0], filename);
fclose(fp);
return 1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment