mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wifi_provisioning: Fix some memory leak issues by coverity static analyzer.
This commit is contained in:
parent
88645a97b4
commit
b67821b2a7
@ -83,6 +83,7 @@ static esp_err_t cmd_get_status_handler(WiFiConfigPayload *req,
|
||||
malloc(sizeof(WifiConnectedState)));
|
||||
if (!connected) {
|
||||
ESP_LOGE(TAG, "Error allocating memory");
|
||||
free(resp_payload);
|
||||
return ESP_ERR_NO_MEM;
|
||||
}
|
||||
resp_payload->connected = connected;
|
||||
|
Loading…
Reference in New Issue
Block a user