We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c890e commit e88ecc4Copy full SHA for e88ecc4
ESP32-CAM_Tracking.js/ESP32-CAM_Tracking.js_color/ESP32-CAM_Tracking.js_color.ino
@@ -480,7 +480,6 @@ static esp_err_t cmd_handler(httpd_req_t *req){
480
buf_len = httpd_req_get_url_query_len(req) + 1;
481
if (buf_len > 1) {
482
buf = (char*)malloc(buf_len);
483
-
484
if(!buf){
485
httpd_resp_send_500(req);
486
return ESP_FAIL;
@@ -493,6 +492,7 @@ static esp_err_t cmd_handler(httpd_req_t *req){
493
492
myCmd = String(buf); //如果非官方格式不含var, val,則為自訂指令格式
494
}
495
+ free(buf);
496
} else {
497
httpd_resp_send_404(req);
498
0 commit comments