Juan Lang : crypt32: Fix a couple leaked messages.

Alexandre Julliard julliard at winehq.org
Fri Oct 19 08:35:48 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Oct 18 20:48:33 2007 -0700

crypt32: Fix a couple leaked messages.

---

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

diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 711677b..47321af 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -1926,6 +1926,7 @@ static void test_decode_msg_update(void)
     ret = CryptMsgUpdate(msg, dataEmptyContent, sizeof(dataEmptyContent),
      TRUE);
     ok(ret, "CryptMsgUpdate failed: %x\n", GetLastError());
+    CryptMsgClose(msg);
     /* but decoding it as an explicitly typed message fails. */
     msg = CryptMsgOpenToDecode(PKCS_7_ASN_ENCODING, 0, CMSG_DATA, 0, NULL,
      NULL);
@@ -2447,6 +2448,7 @@ static void test_msg_control(void)
      sizeof(signedWithCertWithValidPubKeyContent), TRUE);
     ret = CryptMsgControl(msg, 0, CMSG_CTRL_VERIFY_SIGNATURE, &certInfo);
     ok(ret, "CryptMsgControl failed: %08x\n", GetLastError());
+    CryptMsgClose(msg);
 }
 
 static void test_msg_get_signer_count(void)




More information about the wine-cvs mailing list