Commit 6a917733 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

sapi: Prevent resource leak (Coverity).

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