Skip to content

Commit e08125f

Browse files
Add missing XFREE for dCert.
1 parent 37982e7 commit e08125f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/x509_str.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,10 @@ static int X509StoreRemoveCa(WOLFSSL_X509_STORE* store,
14641464
result = RemoveCA(store->cm, dCert->extSubjKeyId, type);
14651465
}
14661466

1467-
if (dCert)
1467+
if (dCert) {
14681468
wc_FreeDecodedCert(dCert);
1469+
XFREE(dCert, NULL, DYNAMIC_TYPE_DCERT);
1470+
}
14691471

14701472
return result;
14711473
}

0 commit comments

Comments
 (0)