Skip to content

Commit b58fa75

Browse files
committed
Merge branch 'bugfix/wifi_scan_example_v5.3' into 'release/v5.3'
fix(wifi): Free scan configuration after use when channel bitmap is used in scan example (Backport v5.3) See merge request espressif/esp-idf!32201
2 parents d390c6f + 3a1cc2b commit b58fa75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/wifi/scan/main/scan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ static void wifi_scan(void)
179179
}
180180
array_2_channel_bitmap(channel_list, CHANNEL_LIST_SIZE, scan_config);
181181
esp_wifi_scan_start(scan_config, true);
182+
free(scan_config);
182183

183184
#else
184185
esp_wifi_scan_start(NULL, true);

0 commit comments

Comments
 (0)