mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix #524, free memory of json response
This commit is contained in:
@@ -132,6 +132,7 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) {
|
|||||||
JsonVariant data = output["api_data"];
|
JsonVariant data = output["api_data"];
|
||||||
request->send(200, "text/plain; charset=utf-8", data.as<String>());
|
request->send(200, "text/plain; charset=utf-8", data.as<String>());
|
||||||
api_count_++;
|
api_count_++;
|
||||||
|
delete response;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user