From a87df25d9e0dd5525dd27a4edf81ce8e5f6a01e4 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.c | 1 + 1 file changed, 1 insertion(+) 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);