From d8fb290ee1ddcedb6d8cdddbfa213e12afd2dc5f Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 18 Oct 2007 20:48:33 -0700 Subject: [PATCH] crypt32: Fix a couple leaked messages. --- dlls/crypt32/tests/msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c index 711677b91d7..47321af6e74 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) -- 2.11.4.GIT