修复FreeX509CertChainValidateParams函数中的非功能bug

Signed-off-by: lanming <lanming@huawei.com>
This commit is contained in:
lanming 2024-06-01 16:36:53 +08:00
parent 989eba3ad9
commit ae266cb9e0

View File

@ -410,6 +410,13 @@ void FreeX509CertChainValidateParams(HcfX509CertChainValidateParams &param)
CfFree(param.certCRLCollections);
param.certCRLCollections = nullptr;
}
CfBlobFree(&(param.sslHostname));
if (param.keyUsage != nullptr) {
CfFree(param.keyUsage->data);
CfFree(param.keyUsage);
param.keyUsage = nullptr;
}
}
void FreeTrustAnchorArray(HcfX509TrustAnchorArray *trustAnchorArray, bool freeCertFlag)