Juan Lang : cryptnet: Fix memory leaks in tests.
Alexandre Julliard
julliard at winehq.org
Fri Nov 20 10:47:59 CST 2009
Module: wine
Branch: master
Commit: 320407a174facdeb154a3a06a3d3baf652415ff0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=320407a174facdeb154a3a06a3d3baf652415ff0
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Nov 19 09:45:29 2009 -0800
cryptnet: Fix memory leaks in tests.
---
dlls/cryptnet/tests/cryptnet.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/cryptnet/tests/cryptnet.c b/dlls/cryptnet/tests/cryptnet.c
index 618e494..40f66f6 100644
--- a/dlls/cryptnet/tests/cryptnet.c
+++ b/dlls/cryptnet/tests/cryptnet.c
@@ -376,10 +376,13 @@ static void test_retrieveObjectByUrl(void)
skip("no usable CertificateContext\n");
return;
}
+ CertFreeCertificateContext(cert);
aux.pLastSyncTime = &ft;
ret = CryptRetrieveObjectByUrlA(url, CONTEXT_OID_CERTIFICATE, 0, 0,
(void **)&cert, NULL, NULL, NULL, &aux);
+ ok(ret, "CryptRetrieveObjectByUrlA failed: %08x\n", GetLastError());
+ CertFreeCertificateContext(cert);
ok(ft.dwLowDateTime || ft.dwHighDateTime,
"Expected last sync time to be set\n");
DeleteFileA(tmpfile);
More information about the wine-cvs
mailing list