ntdll/tests: Fix some string leaks (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sven Baars 2019-01-18 17:18:31 +01:00 committed by Alexandre Julliard
parent 5e677beef5
commit ba3e07420e
2 changed files with 4 additions and 0 deletions

View File

@ -3662,6 +3662,8 @@ static void test_file_mode(void)
if (option_tests[i].file_name == &file_name)
DeleteFileW(dos_file_name);
}
pRtlFreeUnicodeString(&file_name);
}
static void test_query_volume_information_file(void)

View File

@ -2008,6 +2008,8 @@ static void test_RtlCreateRegistryKey(void)
status = pRtlCreateRegistryKey((RTL_REGISTRY_USER+1) | RTL_REGISTRY_OPTIONAL, NULL);
ok(status == STATUS_INVALID_PARAMETER, "RtlCreateRegistryKey unexpected return value: %08x, expected %08x\n", status, STATUS_INVALID_PARAMETER);
pRtlFreeUnicodeString(&str);
}
START_TEST(reg)