Commit 1eca6344 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

crypt32/tests: Fix some memory leaks (Valgrind).

parent f96c2bd6
...@@ -1736,6 +1736,7 @@ static void testGetIssuerCert(void) ...@@ -1736,6 +1736,7 @@ static void testGetIssuerCert(void)
CertFreeCertificateContext(child); CertFreeCertificateContext(child);
CertFreeCertificateContext(cert1); CertFreeCertificateContext(cert1);
CertFreeCertificateContext(cert2); CertFreeCertificateContext(cert2);
CertFreeCertificateContext(cert3);
CertCloseStore(store, 0); CertCloseStore(store, 0);
HeapFree(GetProcessHeap(), 0, certencoded); HeapFree(GetProcessHeap(), 0, certencoded);
...@@ -1750,6 +1751,7 @@ static void testGetIssuerCert(void) ...@@ -1750,6 +1751,7 @@ static void testGetIssuerCert(void)
ok(!parent, "Expected NULL\n"); ok(!parent, "Expected NULL\n");
ok(GetLastError() == CRYPT_E_SELF_SIGNED, ok(GetLastError() == CRYPT_E_SELF_SIGNED,
"Expected CRYPT_E_SELF_SIGNED, got %08X\n", GetLastError()); "Expected CRYPT_E_SELF_SIGNED, got %08X\n", GetLastError());
CertFreeCertificateContext(cert1);
CertCloseStore(store, 0); CertCloseStore(store, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment