mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 19:59:49 +00:00
[atl]
atl: memory leak on failure path (copy pasta?) spotted by Samuel Serapion CORE-8212 svn path=/trunk/; revision=63483
This commit is contained in:
parent
af35d7f046
commit
dad0af61d4
|
@ -272,7 +272,7 @@ private:
|
|||
{
|
||||
len = MultiByteToWideChar(CP_ACP, 0, regstra, filelen, NULL, 0) + 1;
|
||||
regstrw = reinterpret_cast<LPWSTR>(HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len * sizeof(WCHAR)));
|
||||
if (regstra == NULL)
|
||||
if (regstrw == NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, regstra);
|
||||
return E_OUTOFMEMORY;
|
||||
|
|
Loading…
Reference in a new issue