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

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

See merge request espressif/esp-idf!8655
This commit is contained in:
Jiang Jiang Jian 2020-05-29 11:14:36 +08:00
commit 5c2ed3af0e

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);