netapi32/tests: Fix a memory leak (Valgrind)

Bruno Jesus 00cpxxx at gmail.com
Fri Mar 20 22:05:40 CDT 2015


Fixes https://bugs.winehq.org/show_bug.cgi?id=36305
-------------- next part --------------
diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c
index b71e1c8..7675cbf 100644
--- a/dlls/netapi32/tests/access.c
+++ b/dlls/netapi32/tests/access.c
@@ -348,6 +348,8 @@ static void run_localgroupgetinfo_tests(void)
 
     for(i=0;i<entries_read;i++)
         trace("domain and name: %s\n", wine_dbgstr_w(buffer[i].lgrmi3_domainandname));
+
+    pNetApiBufferFree(buffer);
 }
 
 START_TEST(access)


More information about the wine-patches mailing list