mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
[http_request] memory leak fix (#6973)
This commit is contained in:
parent
17204baac0
commit
0f49b58e0a
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ template<typename... Ts> class HttpRequestSendAction : public Action<Ts...> {
|
||||||
}
|
}
|
||||||
response_body.reserve(read_index);
|
response_body.reserve(read_index);
|
||||||
response_body.assign((char *) buf, read_index);
|
response_body.assign((char *) buf, read_index);
|
||||||
|
allocator.deallocate(buf, max_length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue