Commit f19086e9 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

crypt32: Fix some memory leaks.

parent a5fdea0e
......@@ -2079,6 +2079,7 @@ static BOOL CDecodeHashMsg_VerifyHash(CDecodeMsg *msg)
if (ret)
ret = !memcmp(hashBlob.pbData, computedHash,
hashBlob.cbData);
CryptMemFree(computedHash);
}
else
ret = FALSE;
......
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment