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

This commit is contained in:
Nikolay Sivov 2014-05-06 11:58:03 +04:00 committed by Alexandre Julliard
parent 29eace89e9
commit 0563c78cb6
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,7 @@ static void create_file_test(void)
FILE_NON_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT, NULL, 0);
ok(status == STATUS_OBJECT_NAME_INVALID,
"open %s failed %x\n", wine_dbgstr_w(nameW.Buffer), status);
pRtlFreeUnicodeString(&nameW);
pRtlDosPathNameToNtPathName_U(pipeInvalidNameW, &nameW, NULL, NULL);
attr.ObjectName = &nameW;
@ -281,6 +282,7 @@ static void create_file_test(void)
FILE_NON_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT, NULL, 0);
ok(status == STATUS_OBJECT_NAME_INVALID,
"open %s failed %x\n", wine_dbgstr_w(nameW.Buffer), status);
pRtlFreeUnicodeString(&nameW);
}
static void open_file_test(void)
@ -1966,6 +1968,7 @@ static void test_NtCreateFile(void)
}
}
pRtlFreeUnicodeString( &nameW );
SetFileAttributesW(path, FILE_ATTRIBUTE_ARCHIVE);
DeleteFileW( path );
}