diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 3a34454a77..d8f4e8c28e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -2016,7 +2016,7 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ #endif #endif -#ifndef OPENSSL_EXTRA +#if defined(WOLFSSL_STATIC_MEMORY) && !defined(OPENSSL_EXTRA) wolfSSL_SetGlobalHeapHint(NULL); #endif TEST_PASS("Test complete\n");