[PATCH] ntdll/tests: Fix a memory leak (Valgrind).
Zebediah Figura
z.figura12 at gmail.com
Wed Dec 12 21:32:43 CST 2018
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/ntdll/tests/path.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index 722ca99d2d..c8a5951b60 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -517,6 +517,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
if (pRtlDosPathNameToNtPathName_U_WithStatus)
{
+ RtlFreeUnicodeString(&nameW);
status = pRtlDosPathNameToNtPathName_U_WithStatus(path, &nameW, &file_part, NULL);
ok(status == tests[i].status || status == tests[i].alt_status,
"%s: Expected status %#x, got %#x.\n", tests[i].dos, tests[i].status, status);
--
2.19.2
More information about the wine-devel
mailing list