[COMP]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 6 Oct 2011 20:13:54 +0000 (20:13 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 6 Oct 2011 20:13:54 +0000 (20:13 +0000)
Fix resource leak

svn path=/trunk/; revision=54030

rosapps/applications/cmdutils/comp/comp.c

index 507ac07..2446dda 100644 (file)
@@ -149,6 +149,7 @@ int _tmain (int argc, TCHAR *argv[])
     if ((fp2 = fopen(File2, "r")) == NULL)\r
     {\r
         _tprintf(_T("Can't find/open file: %s\n"), File2);\r
+        fclose(fp1);\r
         return EXIT_FAILURE;\r
     }\r
 \r