Module: wine Branch: master Commit: f6bfa45970c8712a679cb0548acdbc70f27391ba URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6bfa45970c8712a679cb0548a...
Author: Juan Lang juan.lang@gmail.com Date: Thu Nov 8 08:45:58 2007 -0800
crypt32: Fix a couple leaks in test.
---
dlls/crypt32/tests/encode.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/tests/encode.c b/dlls/crypt32/tests/encode.c index 82d0344..1b1462d 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,