mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
GetCharacterPlacementA: Free memory on error
svn path=/trunk/; revision=42898
This commit is contained in:
parent
aa38bf2535
commit
eda170fe74
1 changed files with 1 additions and 0 deletions
|
@ -328,6 +328,7 @@ GetCharacterPlacementA(
|
|||
resultsW.lpOutString = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*uCountW);
|
||||
if (resultsW.lpOutString == NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, lpStringW);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue