Skip to content

Commit 3a1cc2b

Browse files
committed
fix(wifi): Free scan configuration after use when channel bitmap is used
1 parent e0991fa commit 3a1cc2b

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)