Commit 078f4dcd authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent c938f92e
......@@ -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;
......
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