Skip to content

Commit

Permalink
Merge branch 'bugfix/malloc_free_removal' into 'master'
Browse files Browse the repository at this point in the history
esp_wifi: Remove direct calls of malloc() and free()

See merge request espressif/esp-idf!23287
  • Loading branch information
jack0c committed Jun 16, 2023
2 parents 912de2a + 32479c9 commit b77540c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/wpa_supplicant/src/ap/wpa_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b77540c

Please sign in to comment.