mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
fix a memory leak
svn path=/trunk/; revision=28085
This commit is contained in:
parent
953da5af6e
commit
1ef29d0d83
|
@ -473,7 +473,12 @@ BOOL FileGetString (HANDLE hFile, LPTSTR lpBuffer, INT nBufferLength)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dwRead && !len)
|
if (!dwRead && !len)
|
||||||
|
{
|
||||||
|
#ifdef _UNICODE
|
||||||
|
cmd_free(lpString);
|
||||||
|
#endif
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
lpString[len++] = _T('\0');
|
lpString[len++] = _T('\0');
|
||||||
#ifdef _UNICODE
|
#ifdef _UNICODE
|
||||||
|
|
Loading…
Reference in a new issue