ntdll/tests: Fix a memory leak.

Found by Valgrind.
This commit is contained in:
Hans Leidekker 2009-12-08 11:44:04 +01:00 committed by Alexandre Julliard
parent 3bf156a8c5
commit fe8f5c2232
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@
static BOOL (WINAPI * pGetVolumePathNameW)(LPCWSTR, LPWSTR, DWORD); static BOOL (WINAPI * pGetVolumePathNameW)(LPCWSTR, LPWSTR, DWORD);
static UINT (WINAPI *pGetSystemWow64DirectoryW)( LPWSTR, UINT ); static UINT (WINAPI *pGetSystemWow64DirectoryW)( LPWSTR, UINT );
static NTSTATUS (WINAPI *pRtlFreeUnicodeString)( PUNICODE_STRING ); static VOID (WINAPI *pRtlFreeUnicodeString)( PUNICODE_STRING );
static VOID (WINAPI *pRtlInitUnicodeString)( PUNICODE_STRING, LPCWSTR ); static VOID (WINAPI *pRtlInitUnicodeString)( PUNICODE_STRING, LPCWSTR );
static BOOL (WINAPI *pRtlDosPathNameToNtPathName_U)( LPCWSTR, PUNICODE_STRING, PWSTR*, CURDIR* ); static BOOL (WINAPI *pRtlDosPathNameToNtPathName_U)( LPCWSTR, PUNICODE_STRING, PWSTR*, CURDIR* );
static NTSTATUS (WINAPI *pRtlWow64EnableFsRedirectionEx)( ULONG, ULONG * ); static NTSTATUS (WINAPI *pRtlWow64EnableFsRedirectionEx)( ULONG, ULONG * );
@ -337,6 +337,7 @@ static void open_file_test(void)
} }
CloseHandle( dir ); CloseHandle( dir );
pRtlFreeUnicodeString( &nameW );
} }
static void delete_file_test(void) static void delete_file_test(void)