crypt32: Fix some memory leaks.

This commit is contained in:
Andrew Talbot 2007-09-14 17:02:33 +01:00 committed by Alexandre Julliard
parent a5fdea0e6a
commit f19086e9d3
2 changed files with 2 additions and 0 deletions

View File

@ -2079,6 +2079,7 @@ static BOOL CDecodeHashMsg_VerifyHash(CDecodeMsg *msg)
if (ret)
ret = !memcmp(hashBlob.pbData, computedHash,
hashBlob.cbData);
CryptMemFree(computedHash);
}
else
ret = FALSE;

View File

@ -137,6 +137,7 @@ static BOOL import_base64_certs_from_fp(FILE *fp, HCERTSTORE store)
if (CertAddEncodedCertificateToStore(store,
X509_ASN_ENCODING, buf, size, CERT_STORE_ADD_NEW, NULL))
num_certs++;
CryptMemFree(buf);
}
}
}