wbemprox/tests: Fix some leaks (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dc203dd833
commit
5773203afd
|
@ -1012,6 +1012,7 @@ static void test_SystemSecurity( IWbemServices *services )
|
||||||
win_skip( "__SystemSecurity not available\n" );
|
win_skip( "__SystemSecurity not available\n" );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
IWbemClassObject_Release( reg );
|
||||||
|
|
||||||
sid_size = sizeof(sid_admin_buffer);
|
sid_size = sizeof(sid_admin_buffer);
|
||||||
ret = CreateWellKnownSid( WinBuiltinAdministratorsSid, NULL, sid_admin, &sid_size );
|
ret = CreateWellKnownSid( WinBuiltinAdministratorsSid, NULL, sid_admin, &sid_size );
|
||||||
|
@ -1297,6 +1298,7 @@ static void test_PhysicalMemory( IWbemServices *services )
|
||||||
VariantClear( &val );
|
VariantClear( &val );
|
||||||
|
|
||||||
IWbemClassObject_Release( obj );
|
IWbemClassObject_Release( obj );
|
||||||
|
IEnumWbemClassObject_Release( result );
|
||||||
SysFreeString( query );
|
SysFreeString( query );
|
||||||
SysFreeString( wql );
|
SysFreeString( wql );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue