Explorar el Código

Merge branch 'bugfix/malloc_free_removal' into 'master'

esp_wifi: Remove direct calls of malloc() and free()

See merge request espressif/esp-idf!23287
Jiang Jiang Jian hace 2 años
padre
commit
b77540c285
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      components/esp_wifi/lib
  2. 1 1
      components/wpa_supplicant/src/ap/wpa_auth.c

+ 1 - 1
components/esp_wifi/lib

@@ -1 +1 @@
-Subproject commit f26ce4065080b3cad7529725756f185444ee31ec
+Subproject commit c1a8747dab1ef3a138195b0a7e5de8dd9dfe539e

+ 1 - 1
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);