wbemprox: Free name in create_signature (Coverity).

This commit is contained in:
Dmitry Timoshkov 2013-02-04 23:56:11 +08:00 committed by Alexandre Julliard
parent 145c3e3abf
commit 1eee6e3159
1 changed files with 5 additions and 6 deletions

View File

@ -834,12 +834,11 @@ HRESULT create_signature( const WCHAR *class, const WCHAR *method, enum param_di
} }
hr = create_signature_table( iter, name ); hr = create_signature_table( iter, name );
IEnumWbemClassObject_Release( iter ); IEnumWbemClassObject_Release( iter );
if (hr != S_OK) if (hr == S_OK)
{ hr = get_object( name, sig );
heap_free( name );
return hr; heap_free( name );
} return hr;
return get_object( name, sig );
} }
static HRESULT WINAPI class_object_GetMethod( static HRESULT WINAPI class_object_GetMethod(