ntdll/tests: Fix a memory leak (Valgrind).

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-12-12 21:32:43 -06:00 committed by Alexandre Julliard
parent 839a1762cb
commit 1344dcee39
1 changed files with 1 additions and 0 deletions

View File

@ -517,6 +517,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
if (pRtlDosPathNameToNtPathName_U_WithStatus)
{
RtlFreeUnicodeString(&nameW);
status = pRtlDosPathNameToNtPathName_U_WithStatus(path, &nameW, &file_part, NULL);
ok(status == tests[i].status || status == tests[i].alt_status,
"%s: Expected status %#x, got %#x.\n", tests[i].dos, tests[i].status, status);