From 3c1569dff789e833c6388151b9fabae2c1efad17 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 6 May 2019 11:41:50 -0700 Subject: [PATCH] Fix for issue with new `wc_ecc_get_curve_order_bit_count` function not free'ing memory when used with normal math. Started in https://github.com/wolfSSL/wolfssl/pull/2201 --- wolfcrypt/src/ecc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index a1bd06b27..6a0a2c4bb 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4310,6 +4310,7 @@ static int wc_ecc_get_curve_order_bit_count(const ecc_set_type* dp) } orderBits = mp_count_bits(curve->order); + wc_ecc_curve_free(curve); FREE_CURVE_SPECS(); return (int)orderBits; }