gameux: Avoid double free (coverity).
This commit is contained in:
parent
07fd75badd
commit
97dbccf5f2
|
@ -783,6 +783,7 @@ HRESULT GAMEUX_FindGameInstanceId(
|
||||||
sConfigGDFBinaryPath, &lpValue);
|
sConfigGDFBinaryPath, &lpValue);
|
||||||
|
|
||||||
if(SUCCEEDED(hr))
|
if(SUCCEEDED(hr))
|
||||||
|
{
|
||||||
if(lstrcmpW(lpValue, sGDFBinaryPath)==0)
|
if(lstrcmpW(lpValue, sGDFBinaryPath)==0)
|
||||||
{
|
{
|
||||||
/* key found, let's copy instance id and exit */
|
/* key found, let's copy instance id and exit */
|
||||||
|
@ -792,6 +793,7 @@ HRESULT GAMEUX_FindGameInstanceId(
|
||||||
HeapFree(GetProcessHeap(), 0, lpValue);
|
HeapFree(GetProcessHeap(), 0, lpValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, lpName);
|
HeapFree(GetProcessHeap(), 0, lpName);
|
||||||
RegCloseKey(hRootKey);
|
RegCloseKey(hRootKey);
|
||||||
|
|
Loading…
Reference in New Issue