Merge pull request #1786 from kaleb-himes/USER-HEAP-WITH-CM

Unloading from CM, and using custom heap, ensure XFREE has acces…
pull/1789/head
David Garske 2018-08-24 11:56:48 -07:00 committed by GitHub
commit 1005ca0703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);