From: Alex Henrie alexhenrie24@gmail.com
--- dlls/wbemprox/reg.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wbemprox/reg.c b/dlls/wbemprox/reg.c index cd7db81aed7..cdfb5d28007 100644 --- a/dlls/wbemprox/reg.c +++ b/dlls/wbemprox/reg.c @@ -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;