Skip to content

Commit

Permalink
fix emsesp#524, free memory of json response
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed May 26, 2022
1 parent a3773a0 commit c0acd00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/web/WebAPIService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ void WebAPIService::parse(AsyncWebServerRequest * request, JsonObject & input) {
JsonVariant data = output["api_data"];
request->send(200, "text/plain; charset=utf-8", data.as<String>());
api_count_++;
delete response;
return;
}

Expand Down

0 comments on commit c0acd00

Please sign in to comment.