mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 13:23:25 +00:00
crypt32: Fix some memory leaks.
This commit is contained in:
parent
a5fdea0e6a
commit
f19086e9d3
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user