mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[INFLIBNEW] Free allocated memory on error
svn path=/trunk/; revision=47206
This commit is contained in:
parent
12eb6e6cba
commit
d28f0be86e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue