commit | 5cc3f26c4809d87a9573783a5ac98212a91c79e1 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Fri Jan 18 08:53:45 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Fri Jan 18 08:53:45 2008 +0000 |
tree | 9955336a2f7f770ed0c501c5f673d75ab620ed40 | |
parent | 3e8c897d80db38613f26b2f4c120f9e15a8ae9d2 [diff] [blame] |
Coverity CID #168 leaked_storage: Returned without freeing storage "fp"
diff --git a/Modules/main.c b/Modules/main.c index 3d4b9be..e6409e8 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -565,6 +565,7 @@ 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; } }