No redundant NULL check on free

This commit is contained in:
Colton Willey
2024-12-10 09:43:03 -08:00
parent 0c20a20acc
commit 00386c76bf

View File

@ -4050,9 +4050,7 @@ static int Pkcs11GetCert(Pkcs11Session* session, wc_CryptoInfo* info) {
certData = NULL;
exit:
if (certData != NULL) {
XFREE(certData, info->cert.heap, DYNAMIC_TYPE_CERT);
}
XFREE(certData, info->cert.heap, DYNAMIC_TYPE_CERT);
return ret;
}