Add missing XFREE for dCert.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user