[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: netapi32/tests: Fix a memory leak
From: Jeff Latimer <lats () yless4u ! com ! au>
Date: 2018-06-04 3:13:54
Message-ID: 5705b18d-7008-440f-7077-50de1b1fbf43 () yless4u ! com ! au
[Download RAW message or body]
---
dlls/netapi32/tests/access.c | 2 ++
1 file changed, 2 insertions(+)
["0009-netapi32-tests-Fix-a-memory-leak.patch" (text/x-patch)]
diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c
index 34247a09d2..416a685f4a 100644
--- a/dlls/netapi32/tests/access.c
+++ b/dlls/netapi32/tests/access.c
@@ -132,6 +132,8 @@ static void run_usergetinfo_tests(void)
(lstrlenW(ui0->usri0_name) + 1) * sizeof(WCHAR)),
"Is allocated with NetApiBufferAllocate\n");
+ pNetApiBufferFree(ui0);
+
/* Level 1 */
rc=pNetUserGetInfo(NULL, sTestUserName, 1, (LPBYTE *)&ui1);
ok(rc == NERR_Success, "NetUserGetInfo level 1 failed: 0x%08x.\n", rc);
[Attachment #4 (text/plain)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic