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:
Nikolay Sivov 2017-10-02 21:35:05 +03:00 committed by Alexandre Julliard
parent dc203dd833
commit 5773203afd
1 changed files with 2 additions and 0 deletions

View File

@ -1012,6 +1012,7 @@ static void test_SystemSecurity( IWbemServices *services )
win_skip( "__SystemSecurity not available\n" );
return;
}
IWbemClassObject_Release( reg );
sid_size = sizeof(sid_admin_buffer);
ret = CreateWellKnownSid( WinBuiltinAdministratorsSid, NULL, sid_admin, &sid_size );
@ -1297,6 +1298,7 @@ static void test_PhysicalMemory( IWbemServices *services )
VariantClear( &val );
IWbemClassObject_Release( obj );
IEnumWbemClassObject_Release( result );
SysFreeString( query );
SysFreeString( wql );
}