Gijs Vermeulen : crypt32/tests: Fix some memory leaks (Valgrind).
Alexandre Julliard
julliard at winehq.org
Wed May 22 15:52:06 CDT 2019
Module: wine
Branch: master
Commit: 1eca63440d54cbaa0be8616eb0d153205f4909d1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1eca63440d54cbaa0be8616eb0d153205f4909d1
Author: Gijs Vermeulen <gijsvrm at gmail.com>
Date: Tue May 21 21:22:30 2019 +0200
crypt32/tests: Fix some memory leaks (Valgrind).
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/crypt32/tests/cert.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index e4f4c59..880ae72 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1736,6 +1736,7 @@ static void testGetIssuerCert(void)
CertFreeCertificateContext(child);
CertFreeCertificateContext(cert1);
CertFreeCertificateContext(cert2);
+ CertFreeCertificateContext(cert3);
CertCloseStore(store, 0);
HeapFree(GetProcessHeap(), 0, certencoded);
@@ -1750,6 +1751,7 @@ static void testGetIssuerCert(void)
ok(!parent, "Expected NULL\n");
ok(GetLastError() == CRYPT_E_SELF_SIGNED,
"Expected CRYPT_E_SELF_SIGNED, got %08X\n", GetLastError());
+ CertFreeCertificateContext(cert1);
CertCloseStore(store, 0);
}
More information about the wine-cvs
mailing list