19 Jun
2023
19 Jun
'23
4:35 a.m.
From: Alex Henrie <alexhenrie24(a)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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3099