Juan Lang : crypt32: Fix a leaked key.

Alexandre Julliard julliard at winehq.org
Fri Nov 2 08:10:20 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Nov  1 10:13:32 2007 -0700

crypt32: Fix a leaked key.

---

 dlls/crypt32/tests/encode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c
index f5ea461..74ebe3c 100644
--- a/dlls/crypt32/tests/encode.c
+++ b/dlls/crypt32/tests/encode.c
@@ -5746,6 +5746,7 @@ static void testExportPublicKey(HCRYPTPROV csp, PCERT_PUBLIC_KEY_INFO *pInfo)
             }
         }
     }
+    CryptDestroyKey(key);
 }
 
 static const BYTE expiredCert[] = { 0x30, 0x82, 0x01, 0x33, 0x30, 0x81, 0xe2,




More information about the wine-cvs mailing list