Sven Baars : kernel32/tests: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Wed Jan 23 17:11:34 CST 2019


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

Author: Sven Baars <sven.wine at gmail.com>
Date:   Sun Jan 20 22:02:14 2019 +0100

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

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

---

 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 4dbe129..c075e0a 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)




More information about the wine-cvs mailing list