mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:54:05 +00:00
wbemprox: Fix memory leak on error path in enum_key (scan-build).
This commit is contained in:
parent
c938f92e4c
commit
078f4dcd44
|
@ -186,6 +186,7 @@ static HRESULT enum_key( HKEY root, const WCHAR *subkey, VARIANT *names, IWbemCo
|
|||
if (!(tmp = realloc( strings, count * sizeof(BSTR) )))
|
||||
{
|
||||
RegCloseKey( hkey );
|
||||
free( strings );
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
strings = tmp;
|
||||
|
|
Loading…
Reference in a new issue