[PATCH] wininet/tests: Fix some memory leaks (Valgrind).

Sven Baars sven.wine at gmail.com
Sat Feb 9 13:18:13 CST 2019


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

diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 9ec4902cdc..5a0cc11754 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -5813,6 +5813,9 @@ static void test_security_flags(void)
         ok(!cert->lpszEncryptionAlgName, "unexpected encryption algorithm name\n");
         ok(!cert->lpszProtocolName, "unexpected protocol name\n");
         ok(cert->dwKeySize != 0xdeadbeef, "unexpected key size\n");
+
+        LocalFree(cert->lpszSubjectInfo);
+        LocalFree(cert->lpszIssuerInfo);
     }
     HeapFree(GetProcessHeap(), 0, cert);
 
-- 
2.17.1




More information about the wine-devel mailing list