We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26d468 commit 23f54c5Copy full SHA for 23f54c5
src/x509_str.c
@@ -1466,8 +1466,11 @@ static int X509StoreRemoveCa(WOLFSSL_X509_STORE* store,
1466
wc_InitDecodedCert(dCert, x509->derCert->buffer,
1467
x509->derCert->length, NULL);
1468
result = wc_ParseCert(dCert, CA_TYPE, NO_VERIFY, store->cm);
1469
- if (result)
+ if (result) {
1470
+ wc_FreeDecodedCert(dCert);
1471
+ XFREE(dCert, NULL, DYNAMIC_TYPE_DCERT);
1472
return WOLFSSL_FATAL_ERROR;
1473
+ }
1474
1475
result = RemoveCA(store->cm, dCert->extSubjKeyId, type);
1476
}
0 commit comments