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=…
==============================================================================
--- 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;
}