Sven Baars : ntdll/tests: Fix a string leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Fri May 31 15:53:31 CDT 2019


Module: wine
Branch: master
Commit: 539ebebc943c2c305d45b1aaa83186b73adb7eaf
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=539ebebc943c2c305d45b1aaa83186b73adb7eaf

Author: Sven Baars <sven.wine at gmail.com>
Date:   Fri May 31 19:44:36 2019 +0200

ntdll/tests: Fix a string leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/om.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c
index 84f97d4..931628b 100644
--- a/dlls/ntdll/tests/om.c
+++ b/dlls/ntdll/tests/om.c
@@ -1335,6 +1335,8 @@ static void _test_object_type(unsigned line, HANDLE handle, const char *expected
     ok_(__FILE__,line)( len >= sizeof(OBJECT_TYPE_INFORMATION) + str->Length + sizeof(WCHAR), "unexpected len %u\n", len );
     ok_(__FILE__,line)( str->Length == expect.Length && !memcmp( str->Buffer, expect.Buffer, expect.Length ),
                         "wrong/bad type name %s (%p)\n", wine_dbgstr_w(str->Buffer), str->Buffer );
+
+    pRtlFreeUnicodeString( &expect );
 }
 
 static void test_query_object(void)




More information about the wine-cvs mailing list