Merge branch 'bugfix/fix_memleak_in_wpa3_feature_v4.1' into 'release/v4.1'

fix(wpa_supplicant): fix memleak in wpa3 feature(backport v4.1)

See merge request espressif/esp-idf!8656
This commit is contained in:
Jiang Jiang Jian 2020-05-22 21:23:43 +08:00
commit 58f0a94cdf

View file

@ -589,6 +589,7 @@ int crypto_ec_point_is_on_curve(struct crypto_ec *e,
cleanup:
mbedtls_mpi_free(&y_sqr_lhs);
mbedtls_mpi_free(&two);
mbedtls_mpi_free(y_sqr_rhs);
os_free(y_sqr_rhs);
return (ret == 0) && (on_curve == 1);