From e9b3feb85daec876990a6905dd39e9bcae43c54f Mon Sep 17 00:00:00 2001 From: Zhang Jun Hao Date: Thu, 7 May 2020 17:28:07 +0800 Subject: [PATCH] fix(wpa_supplicant): fix memleak in wpa3 feature --- components/wpa_supplicant/src/crypto/crypto_mbedtls-ec.c | 1 + 1 file changed, 1 insertion(+) 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);