1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-18 12:05:41 +00:00

[http_request] memory leak fix (#6973)

This commit is contained in:
Gábor Poczkodi 2024-06-24 06:32:20 +02:00 committed by Jesse Hills
parent 0d3cf5cb78
commit e39961f7f1
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -149,6 +149,7 @@ template<typename... Ts> class HttpRequestSendAction : public Action<Ts...> {
}
response_body.reserve(read_index);
response_body.assign((char *) buf, read_index);
allocator.deallocate(buf, max_length);
}
}