Author: pschweitzer
Date: Tue Oct 4 11:57:26 2011
New Revision: 53985
URL:
http://svn.reactos.org/svn/reactos?rev=53985&view=rev
Log:
[INFLIB]
Fix memory leak
Modified:
trunk/reactos/lib/inflib/infhostgen.c
Modified: trunk/reactos/lib/inflib/infhostgen.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/inflib/infhostgen.c?re…
==============================================================================
--- trunk/reactos/lib/inflib/infhostgen.c [iso-8859-1] (original)
+++ trunk/reactos/lib/inflib/infhostgen.c [iso-8859-1] Tue Oct 4 11:57:26 2011
@@ -137,6 +137,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;
}