Commit 1eee6e31 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wbemprox: Free name in create_signature (Coverity).

parent 145c3e3a
......@@ -834,12 +834,11 @@ HRESULT create_signature( const WCHAR *class, const WCHAR *method, enum param_di
}
hr = create_signature_table( iter, name );
IEnumWbemClassObject_Release( iter );
if (hr != S_OK)
{
heap_free( name );
return hr;
}
return get_object( name, sig );
if (hr == S_OK)
hr = get_object( name, sig );
heap_free( name );
return hr;
}
static HRESULT WINAPI class_object_GetMethod(
......
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