Module: wine Branch: master Commit: fe8f5c22325986a2225610a283319626d107f4e6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe8f5c22325986a2225610a283...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Dec 8 11:44:04 2009 +0100
ntdll/tests: Fix a memory leak.
Found by Valgrind.
---
dlls/ntdll/tests/file.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index dff5d9f..7e8f101 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -43,7 +43,7 @@ static BOOL (WINAPI * pGetVolumePathNameW)(LPCWSTR, LPWSTR, DWORD); 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 BOOL (WINAPI *pRtlDosPathNameToNtPathName_U)( LPCWSTR, PUNICODE_STRING, PWSTR*, CURDIR* ); static NTSTATUS (WINAPI *pRtlWow64EnableFsRedirectionEx)( ULONG, ULONG * ); @@ -337,6 +337,7 @@ static void open_file_test(void) }
CloseHandle( dir ); + pRtlFreeUnicodeString( &nameW ); }
static void delete_file_test(void)