mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[SYSDM]
Fix memory leak svn path=/trunk/; revision=54778
This commit is contained in:
parent
2ec1edae97
commit
324daff6b4
1 changed files with 3 additions and 0 deletions
|
@ -207,7 +207,10 @@ GetProfiles(HWND hwndDlg)
|
|||
return FALSE;
|
||||
|
||||
if (!GetProfileCount(&pProfileData->dwProfileCount))
|
||||
{
|
||||
HeapFree(pProfileData, 0, GetProcessHeap());
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
pProfileData->pProfiles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
pProfileData->dwProfileCount * sizeof(PROFILE));
|
||||
|
|
Loading…
Reference in a new issue