fix(wpa_supplicant): fix memleak in wpa3 feature

This commit is contained in:
Zhang Jun Hao 2020-05-08 16:30:16 +08:00
parent f14cdd5d3a
commit 949e7c6f85

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