Merge pull request #2227 from dgarske/eccsigsz

Fix issue with ECC signature size leaking memory with normal math
This commit is contained in:
toddouska
2019-05-07 11:17:12 -07:00
committed by GitHub

View File

@ -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;
}