Skip to content

Commit e88ecc4

Browse files
authored
Update ESP32-CAM_Tracking.js_color.ino
1 parent 04c890e commit e88ecc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ESP32-CAM_Tracking.js/ESP32-CAM_Tracking.js_color/ESP32-CAM_Tracking.js_color.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,6 @@ static esp_err_t cmd_handler(httpd_req_t *req){
480480
buf_len = httpd_req_get_url_query_len(req) + 1;
481481
if (buf_len > 1) {
482482
buf = (char*)malloc(buf_len);
483-
484483
if(!buf){
485484
httpd_resp_send_500(req);
486485
return ESP_FAIL;
@@ -493,6 +492,7 @@ static esp_err_t cmd_handler(httpd_req_t *req){
493492
myCmd = String(buf); //如果非官方格式不含var, val,則為自訂指令格式
494493
}
495494
}
495+
free(buf);
496496
} else {
497497
httpd_resp_send_404(req);
498498
return ESP_FAIL;

0 commit comments

Comments
 (0)