Coverity CID #168

leaked_storage: Returned without freeing storage "fp"
This commit is contained in:
Christian Heimes 2008-01-18 08:53:45 +00:00
parent 3e8c897d80
commit 5cc3f26c48
1 changed files with 1 additions and 0 deletions

View File

@ -565,6 +565,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;
}
}