[http_request] memory leak fix (#6973)

This commit is contained in:
Gábor Poczkodi 2024-06-24 06:32:20 +02:00 committed by GitHub
parent 17204baac0
commit 0f49b58e0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}
}