Unloading from CM, and using custom heap, ensure XFREE has access to custom heap

pull/1786/head
kaleb-himes 2018-08-24 09:54:36 -06:00
parent c7dde6c682
commit b7b99a2e92
1 changed files with 2 additions and 2 deletions

View File

@ -3047,7 +3047,7 @@ int wolfSSL_CertManagerUnloadCAs(WOLFSSL_CERT_MANAGER* cm)
if (wc_LockMutex(&cm->caLock) != 0)
return BAD_MUTEX_E;
FreeSignerTable(cm->caTable, CA_TABLE_SIZE, NULL);
FreeSignerTable(cm->caTable, CA_TABLE_SIZE, cm->heap);
wc_UnLockMutex(&cm->caLock);
@ -3067,7 +3067,7 @@ int wolfSSL_CertManagerUnload_trust_peers(WOLFSSL_CERT_MANAGER* cm)
if (wc_LockMutex(&cm->tpLock) != 0)
return BAD_MUTEX_E;
FreeTrustedPeerTable(cm->tpTable, TP_TABLE_SIZE, NULL);
FreeTrustedPeerTable(cm->tpTable, TP_TABLE_SIZE, cm->heap);
wc_UnLockMutex(&cm->tpLock);