wbemprox: Fix memory leak on error path in enum_key (scan-build).

This commit is contained in:
Alex Henrie 2023-06-18 22:34:21 -06:00 committed by Alexandre Julliard
parent c938f92e4c
commit 078f4dcd44

View file

@ -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;