Commit 97dbccf5 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

gameux: Avoid double free (coverity).

parent 07fd75ba
......@@ -783,13 +783,15 @@ HRESULT GAMEUX_FindGameInstanceId(
sConfigGDFBinaryPath, &lpValue);
if(SUCCEEDED(hr))
{
if(lstrcmpW(lpValue, sGDFBinaryPath)==0)
{
/* key found, let's copy instance id and exit */
hr = (GUIDFromStringW(lpName, pInstanceId) ? S_OK : E_FAIL);
found = TRUE;
}
HeapFree(GetProcessHeap(), 0, lpValue);
HeapFree(GetProcessHeap(), 0, lpValue);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment