Juan Lang : rsaenh/tests: Fix memory leak.

Alexandre Julliard julliard at winehq.org
Wed Dec 9 10:46:25 CST 2009


Module: wine
Branch: master
Commit: 71b4ac9c71dfa7736a7e7cff09d5899c209fd7fe
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=71b4ac9c71dfa7736a7e7cff09d5899c209fd7fe

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Dec  8 11:40:37 2009 -0800

rsaenh/tests: Fix memory leak.

---

 dlls/rsaenh/tests/rsaenh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 2c7ca0e..83ec872 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -2355,9 +2355,9 @@ static void test_null_provider(void)
     CryptDestroyKey(key);
     result = CryptGetUserKey(prov, AT_KEYEXCHANGE, &key);
     ok(result, "CryptGetUserKey with AT_KEYEXCHANGE failed: %08x\n", GetLastError());
+    CryptDestroyKey(key);
     result = CryptGetUserKey(prov, AT_SIGNATURE, &key);
     ok(!result, "expected CryptGetUserKey to fail\n");
-    CryptDestroyKey(key);
     CryptReleaseContext(prov, 0);
 
     CryptAcquireContext(&prov, szContainer, NULL, PROV_RSA_FULL,




More information about the wine-cvs mailing list