Paul Vriens : ntdll/tests: Fix a memory leak (Valgrind).
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 10:37:07 CST 2009
Module: wine
Branch: master
Commit: fa2ec0f06c32c134f3aa6cbe2260532c88eb4bd5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa2ec0f06c32c134f3aa6cbe2260532c88eb4bd5
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Dec 16 16:14:02 2009 +0100
ntdll/tests: Fix a memory leak (Valgrind).
---
dlls/ntdll/tests/file.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c
index 398f198..3672b51 100644
--- a/dlls/ntdll/tests/file.c
+++ b/dlls/ntdll/tests/file.c
@@ -229,6 +229,8 @@ static void create_file_test(void)
FILE_OVERWRITE_IF, 0, NULL, 0 );
ok( status == STATUS_OBJECT_NAME_COLLISION || status == STATUS_ACCESS_DENIED,
"open %s failed %x\n", wine_dbgstr_w(nameW.Buffer), status );
+
+ pRtlFreeUnicodeString( &nameW );
}
static void open_file_test(void)
More information about the wine-cvs
mailing list