Marcus Meissner : xcopy: fclose filedescriptor on eof case (Coverity).

Alexandre Julliard julliard at winehq.org
Fri Jul 19 13:19:40 CDT 2013


Module: wine
Branch: master
Commit: ba7b56b22518f6e1c68267e25f3f29a320a38d12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ba7b56b22518f6e1c68267e25f3f29a320a38d12

Author: Marcus Meissner <meissner at suse.de>
Date:   Mon Jul 15 21:33:32 2013 +0200

xcopy: fclose filedescriptor on eof case (Coverity).

---

 programs/xcopy/xcopy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c
index 7a68831..f894b0e 100644
--- a/programs/xcopy/xcopy.c
+++ b/programs/xcopy/xcopy.c
@@ -291,6 +291,7 @@ static BOOL XCOPY_ProcessExcludeFile(WCHAR* filename, WCHAR* endOfName) {
     if (!feof(inFile)) {
         XCOPY_wprintf(XCOPY_LoadMessage(STRING_READFAIL), filename);
         *endOfName = endChar;
+        fclose(inFile);
         return TRUE;
     }
 




More information about the wine-cvs mailing list