Author: gschneider
Date: Fri May 14 22:56:43 2010
New Revision: 47206
URL:
http://svn.reactos.org/svn/reactos?rev=47206&view=rev
Log:
[INFLIBNEW] Free allocated memory on error
Modified:
trunk/reactos/lib/newinflib/infhostgen.c
Modified: trunk/reactos/lib/newinflib/infhostgen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/newinflib/infhostgen.c…
==============================================================================
--- trunk/reactos/lib/newinflib/infhostgen.c [iso-8859-1] (original)
+++ trunk/reactos/lib/newinflib/infhostgen.c [iso-8859-1] Fri May 14 22:56:43 2010
@@ -189,6 +189,7 @@
if (FileLength != fread(FileBuffer, (size_t)1, (size_t)FileLength, File))
{
DPRINT1("fread() failed (errno %d)\n", errno);
+ FREE(FileBuffer);
fclose(File);
return -1;
}