From f6bfa45970c8712a679cb0548acdbc70f27391ba Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 8 Nov 2007 08:45:58 -0800 Subject: [PATCH] crypt32: Fix a couple leaks in test. --- dlls/crypt32/tests/encode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c index 82d0344e502..1b1462dc111 100644 --- a/dlls/crypt32/tests/encode.c +++ b/dlls/crypt32/tests/encode.c @@ -4296,6 +4296,7 @@ static void test_decodeCRLToBeSigned(DWORD dwEncoding) "Wrong issuer size %d\n", info->Issuer.cbData); ok(!memcmp(info->Issuer.pbData, encodedCommonName, info->Issuer.cbData), "Unexpected issuer\n"); + LocalFree(buf); } /* a real CRL from verisign that has extensions */ ret = CryptDecodeObjectEx(dwEncoding, X509_CERT_CRL_TO_BE_SIGNED, @@ -4359,6 +4360,7 @@ static void test_decodeCRLToBeSigned(DWORD dwEncoding) "Unexpected issuer\n"); ok(info->cExtension == 1, "Expected 1 extensions, got %d\n", info->cExtension); + LocalFree(buf); } ret = CryptDecodeObjectEx(dwEncoding, X509_CERT_CRL_TO_BE_SIGNED, v2CRLWithExt, sizeof(v2CRLWithExt), CRYPT_DECODE_ALLOC_FLAG,