From 989f3d3684f955dfcf15b15a8fdc9174b0fcad66 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 14 Jan 2020 14:35:20 -0800 Subject: [PATCH] Fix for FREE_VAR call on `sharedA`. --- 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 697e0df74..3560786e9 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -17691,8 +17691,8 @@ done: wc_ecc_free(&userB); wc_ecc_free(&userA); - FREE_VAR(sharedA, HEAP_HINT); #if defined(HAVE_ECC_DHE) || defined(HAVE_ECC_CDH) + FREE_VAR(sharedA, HEAP_HINT); FREE_VAR(sharedB, HEAP_HINT); #endif #ifdef HAVE_ECC_SIGN