[ros-diffs] [pschweitzer] 53767: [GENINC] Fix resources leak

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Tue Sep 20 12:24:58 UTC 2011


Author: pschweitzer
Date: Tue Sep 20 12:24:57 2011
New Revision: 53767

URL: http://svn.reactos.org/svn/reactos?rev=53767&view=rev
Log:
[GENINC]
Fix resources leak

Modified:
    trunk/reactos/tools/geninc/geninc.c

Modified: trunk/reactos/tools/geninc/geninc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/geninc/geninc.c?rev=53767&r1=53766&r2=53767&view=diff
==============================================================================
--- trunk/reactos/tools/geninc/geninc.c [iso-8859-1] (original)
+++ trunk/reactos/tools/geninc/geninc.c [iso-8859-1] Tue Sep 20 12:24:57 2011
@@ -65,6 +65,7 @@
     output = fopen(argv[2], "w");
     if (!output)
     {
+        fclose(input);
         fprintf(stderr, "Could not open output file '%s'\n", argv[2]);
         return -1;
     }




More information about the Ros-diffs mailing list