From b7b99a2e92caa9608391b0c96fd2433b207130d4 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 24 Aug 2018 09:54:36 -0600 Subject: [PATCH] Unloading from CM, and using custom heap, ensure XFREE has access to custom heap --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 5d6b50a33..18b46b155 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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);