From dc4b15a265680157fa26ee747bf850bcde6f0237 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 2 Sep 2020 16:00:17 -0500 Subject: [PATCH] test.c: fix gating on heap deallocation in hc128_test() to match earlier tweak to gating on allocation. --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 999ed0429..e354488bf 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -4436,7 +4436,7 @@ static int hc128_test(void) out: -#ifndef WOLFSSL_NO_MALLOC +#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC) if (enc) XFREE(enc, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); if (dec)