esp_wifi/supplicant: fix some WiFi stop memory leak

This commit is contained in:
liu zhifu 2019-12-11 14:36:28 +08:00 committed by Nachiket Kukade
parent 19e840aa53
commit 8cd210b38b

View File

@ -279,8 +279,9 @@ void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa)
os_free(prev);
}
pmksa_cache_set_expiration(pmksa);
os_free(pmksa);
esp_timer_stop(pmksa->cache_timeout_timer);
esp_timer_delete(pmksa->cache_timeout_timer);
os_free(pmksa);
}