[PATCH] kernel32/tests: Fix a memory leak (Valgrind).

Sven Baars sven.wine at gmail.com
Sun Jan 20 15:02:14 CST 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/kernel32/tests/profile.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c
index 4dbe129b76..c075e0a745 100644
--- a/dlls/kernel32/tests/profile.c
+++ b/dlls/kernel32/tests/profile.c
@@ -579,6 +579,8 @@ static void test_profile_directory_readonly(void)
 
     ret = RemoveDirectoryA(path_folder);
     ok(ret == TRUE, "RemoveDirectoryA failed: %d\n", GetLastError());
+
+    LocalFree(attributes.lpSecurityDescriptor);
 }
 
 static void test_GetPrivateProfileString(const char *content, const char *descript)
-- 
2.17.1




More information about the wine-devel mailing list