mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:35:59 +00:00
[SPEC2DEF]
Fix resources leak svn path=/trunk/; revision=53742
This commit is contained in:
parent
0d50ae47fc
commit
a728acae67
1 changed files with 5 additions and 1 deletions
|
@ -807,7 +807,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Allocate memory buffer */
|
||||
pszSource = malloc(nFileSize + 1);
|
||||
if (!pszSource) return -4;
|
||||
if (!pszSource)
|
||||
{
|
||||
fclose(file);
|
||||
return -4;
|
||||
}
|
||||
|
||||
/* Load input file into memory */
|
||||
nFileSize = fread(pszSource, 1, nFileSize, file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue