修改xts用例失败问题

Signed-off-by: hhhFun <fanghaojie@huawei.com>
This commit is contained in:
hhhFun 2024-04-13 15:18:28 +08:00
parent 4357930145
commit 0d502d6872

View File

@ -405,10 +405,10 @@ void FreeX509CertMatchParams(HcfX509CertMatchParams *&matchParams)
CfBlobFree(&matchParams->nameConstraints);
CfBlobFree(&matchParams->privateKeyValid);
CfBlobFree(&matchParams->subjectKeyIdentifier);
CfFree(matchParams->certPolicy);
CfFree(matchParams->extendedKeyUsage);
CfArrayDataClearAndFree(matchParams->certPolicy);
CfArrayDataClearAndFree(matchParams->extendedKeyUsage);
CfFree(matchParams->certPolicy);
CfFree(matchParams->extendedKeyUsage);
if (matchParams->subjectAlternativeNames != nullptr) {
for (uint32_t i = 0; i < matchParams->subjectAlternativeNames->count; ++i) {
if (matchParams->subjectAlternativeNames->data != nullptr) {