Lionel Debroux : ntdll/tests: Fix memory leaks (found by Smatch) and fix a message.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 09:55:38 CDT 2007


Module: wine
Branch: master
Commit: 8f49ea21d465f9a40f4a0c515f2196c6a16431f9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f49ea21d465f9a40f4a0c515f2196c6a16431f9

Author: Lionel Debroux <lionel_debroux at yahoo.fr>
Date:   Sat Oct 20 21:38:35 2007 +0200

ntdll/tests: Fix memory leaks (found by Smatch) and fix a message.

---

 dlls/ntdll/tests/rtlstr.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c
index e40bd53..a99011d 100644
--- a/dlls/ntdll/tests/rtlstr.c
+++ b/dlls/ntdll/tests/rtlstr.c
@@ -289,6 +289,8 @@ static void test_RtlInitUnicodeStringEx(void)
     ok(uni.Buffer == NULL,
        "pRtlInitUnicodeString(&uni, 0) sets Buffer to %p, expected %p\n",
        uni.Buffer, NULL);
+
+    free(teststring2);
 }
 
 
@@ -1709,7 +1711,8 @@ static void test_RtlIsTextUnicode(void)
 
     flags = IS_TEXT_UNICODE_REVERSE_MASK;
     ok(!pRtlIsTextUnicode(be_unicode, sizeof(unicode) + 2, &flags), "Reverse endian should be Unicode\n");
-    todo_wine ok(flags == 0xc0, "Expected flags 0x70, obtained %x\n", flags);
+    todo_wine ok(flags == 0xc0, "Expected flags 0xc0, obtained %x\n", flags);
+    HeapFree(GetProcessHeap(), 0, be_unicode);
 }
 
 static const WCHAR szGuid[] = { '{','0','1','0','2','0','3','0','4','-',




More information about the wine-cvs mailing list