From 020eba74c611460643dc1bf8224ff3a30e05ba0a Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Thu, 20 Jul 2023 20:33:57 +0530 Subject: [PATCH] change(esp_wifi): Remove direct call of malloc() and free() --- components/wpa_supplicant/src/ap/wpa_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wpa_supplicant/src/ap/wpa_auth.c b/components/wpa_supplicant/src/ap/wpa_auth.c index ce76023a56..9b2680c8c1 100644 --- a/components/wpa_supplicant/src/ap/wpa_auth.c +++ b/components/wpa_supplicant/src/ap/wpa_auth.c @@ -166,7 +166,7 @@ static inline int wpa_auth_set_key(struct wpa_authenticator *wpa_auth, if (alg == WIFI_WPA_ALG_IGTK) { if (key) { wpa_printf (MSG_DEBUG, "%s : igtk idx %d", __func__, idx); - wifi_wpa_igtk_t *igtk = malloc(sizeof(wifi_wpa_igtk_t)); + wifi_wpa_igtk_t *igtk = os_malloc(sizeof(wifi_wpa_igtk_t)); if (igtk != NULL) { memcpy(&igtk->igtk[0], key, WPA_IGTK_LEN);