esp_local_ctrl: Fix some memory leak issues by coverity static analyzer.

customer/11kv_v4.0_xiaomi
aditi_lonkar 2021-03-23 12:00:29 +05:30
rodzic 426e0f3948
commit 8719683deb
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -166,6 +166,7 @@ static esp_err_t cmd_set_prop_vals_handler(LocalCtrlMessage *req,
ESP_LOGE(TAG, "Failed to allocate memory for setting values");
free(idxs);
free(vals);
free(resp_payload);
return ESP_ERR_NO_MEM;
}
for (size_t i = 0; i < req->cmd_set_prop_vals->n_props; i++) {