mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[INFLIBNEW] Free allocated memory on error
svn path=/trunk/; revision=47206
This commit is contained in:
@@ -189,6 +189,7 @@ InfHostOpenFile(PHINF InfHandle,
|
||||
if (FileLength != fread(FileBuffer, (size_t)1, (size_t)FileLength, File))
|
||||
{
|
||||
DPRINT1("fread() failed (errno %d)\n", errno);
|
||||
FREE(FileBuffer);
|
||||
fclose(File);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user