diff --git a/components/wpa_supplicant/src/crypto/crypto_mbedtls.c b/components/wpa_supplicant/src/crypto/crypto_mbedtls.c index 0f50cd8d0..4062b1615 100644 --- a/components/wpa_supplicant/src/crypto/crypto_mbedtls.c +++ b/components/wpa_supplicant/src/crypto/crypto_mbedtls.c @@ -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);