Add missing XFREE for dCert.

This commit is contained in:
Kareem
2025-05-21 12:17:57 -07:00
parent d6f603b661
commit 7b4a50b701

View File

@@ -1466,8 +1466,10 @@ static int X509StoreRemoveCa(WOLFSSL_X509_STORE* store,
result = RemoveCA(store->cm, dCert->extSubjKeyId, type);
}
if (dCert)
if (dCert) {
wc_FreeDecodedCert(dCert);
XFREE(dCert, NULL, DYNAMIC_TYPE_DCERT);
}
return result;
}