Module: wine Branch: master Commit: 6a917733b49b3026a1de6f1b7d79ba29380bfb1b URL: https://gitlab.winehq.org/wine/wine/-/commit/6a917733b49b3026a1de6f1b7d79ba2...
Author: Fabian Maurer dark.shadow4@web.de Date: Wed Nov 2 02:39:33 2022 +0100
sapi: Prevent resource leak (Coverity).
Signed-off-by: Fabian Maurer dark.shadow4@web.de
---
dlls/sapi/token.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/sapi/token.c b/dlls/sapi/token.c index 8972a5086ed..478a400f920 100644 --- a/dlls/sapi/token.c +++ b/dlls/sapi/token.c @@ -814,7 +814,10 @@ static HRESULT WINAPI token_enum_Item( ISpObjectTokenEnumBuilder *iface,
hr = token_create( NULL, &IID_ISpObjectToken, (void**)&subtoken ); if (FAILED(hr)) + { + heap_free(subkey); return hr; + }
object = impl_from_ISpObjectToken( subtoken ); object->token_key = key;