diff --git a/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c b/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c index 1c6f451543..42290b0384 100644 --- a/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c +++ b/components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c @@ -432,6 +432,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);