mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[SYSDM]
Fix memory leak svn path=/trunk/; revision=54778
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user