mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[SYSDM]
Fix memory leaks CID #716341 CID #716342 svn path=/trunk/; revision=62656
This commit is contained in:
parent
360df6d05d
commit
cfbaed3a33
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,7 @@ GetEnvironmentVariables(HWND hwndListView,
|
|||
lpData = GlobalAlloc(GPTR, (dwMaxValueDataLength + 1) * sizeof(TCHAR));
|
||||
if (lpData == NULL)
|
||||
{
|
||||
GlobalFree(lpData);
|
||||
GlobalFree(lpName);
|
||||
RegCloseKey(hKey);
|
||||
return;
|
||||
}
|
||||
|
@ -227,6 +227,7 @@ GetEnvironmentVariables(HWND hwndListView,
|
|||
(LPBYTE)lpData,
|
||||
&dwDataLength))
|
||||
{
|
||||
GlobalFree(lpExpandData);
|
||||
GlobalFree(lpName);
|
||||
GlobalFree(lpData);
|
||||
RegCloseKey(hKey);
|
||||
|
|
Loading…
Reference in a new issue