esp_wifi/supplicant: fix some WiFi stop memory leak

This commit is contained in:
liu zhifu
2019-12-11 14:36:28 +08:00
parent 30372f5a4f
commit fde2f33912
2 changed files with 3 additions and 2 deletions

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);
}