mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
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
This commit is contained in:
@ -4310,6 +4310,7 @@ static int wc_ecc_get_curve_order_bit_count(const ecc_set_type* dp)
|
|||||||
}
|
}
|
||||||
orderBits = mp_count_bits(curve->order);
|
orderBits = mp_count_bits(curve->order);
|
||||||
|
|
||||||
|
wc_ecc_curve_free(curve);
|
||||||
FREE_CURVE_SPECS();
|
FREE_CURVE_SPECS();
|
||||||
return (int)orderBits;
|
return (int)orderBits;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user