From 32479c960bc7d895f40b972bc1afe1c80abfb1d5 Mon Sep 17 00:00:00 2001 From: Kapil Gupta Date: Wed, 19 Apr 2023 16:30:20 +0530 Subject: [PATCH] esp_wifi: Remove direct call of malloc() and free() --- components/esp_wifi/lib | 2 +- components/wpa_supplicant/src/ap/wpa_auth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index f26ce40650..c1a8747dab 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit f26ce4065080b3cad7529725756f185444ee31ec +Subproject commit c1a8747dab1ef3a138195b0a7e5de8dd9dfe539e 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);