mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-31 01:39:15 +01:00
Merge pull request #7737 from JacobBarthelmeh/staticmemory-singlethreaded
fix for staticmemory and singlethreaded build
This commit is contained in:
@@ -793,9 +793,13 @@ int wc_LoadStaticMemory(WOLFSSL_HEAP_HINT** pHint,
|
||||
void wc_UnloadStaticMemory(WOLFSSL_HEAP_HINT* heap)
|
||||
{
|
||||
WOLFSSL_ENTER("wc_UnloadStaticMemory");
|
||||
#ifndef SINGLE_THREADED
|
||||
if (heap != NULL && heap->memory != NULL) {
|
||||
wc_FreeMutex(&heap->memory->memory_mutex);
|
||||
}
|
||||
#else
|
||||
(void)heap;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef WOLFSSL_STATIC_MEMORY_LEAN
|
||||
|
||||
Reference in New Issue
Block a user