Juan Lang : crypt32: Fix a leak during chain creation.
Module: wine Branch: master Commit: fc14728efcc631838956ddb9c4e5014065eccc91 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc14728efcc631838956ddb9c4... Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Nov 1 09:30:26 2007 -0700 crypt32: Fix a leak during chain creation. --- dlls/crypt32/chain.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index 068e039..53588f8 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -913,6 +913,10 @@ static BOOL CRYPT_BuildSimpleChain(PCertificateChainEngine engine, if (issuer) { ret = CRYPT_AddCertToSimpleChain(engine, chain, issuer, infoStatus); + /* CRYPT_AddCertToSimpleChain add-ref's the issuer, so free it to + * close the enumeration that found it + */ + CertFreeCertificateContext(issuer); cert = issuer; } else
participants (1)
-
Alexandre Julliard