mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(wifi): Free scan configuration after use when channel bitmap is used
This commit is contained in:
@ -179,6 +179,7 @@ static void wifi_scan(void)
|
|||||||
}
|
}
|
||||||
array_2_channel_bitmap(channel_list, CHANNEL_LIST_SIZE, scan_config);
|
array_2_channel_bitmap(channel_list, CHANNEL_LIST_SIZE, scan_config);
|
||||||
esp_wifi_scan_start(scan_config, true);
|
esp_wifi_scan_start(scan_config, true);
|
||||||
|
free(scan_config);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
esp_wifi_scan_start(NULL, true);
|
esp_wifi_scan_start(NULL, true);
|
||||||
|
Reference in New Issue
Block a user