Skip to content

Commit

Permalink
esp_local_ctrl: Fix some memory leak issues by coverity static analyzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditi-Lonkar authored and espressif-bot committed Jan 25, 2021
1 parent da313b6 commit fe7efa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/esp_local_ctrl/src/esp_local_ctrl_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit fe7efa8

Please sign in to comment.