Clean up RAMAllocators in http_request code (#9143)
This commit is contained in:
1 parent
9c90ca297a
commit
d4cb4ef994
2 files changed
+2
-2
No files matched your search
@@ -54,7 +54,7 @@ void HttpRequestUpdate::update_task(void *params) {
|
||||
UPDATE_RETURN;
|
||||
}
|
||||
|
||||
ExternalRAMAllocator<uint8_t> allocator(ExternalRAMAllocator<uint8_t>::ALLOW_FAILURE);
|
||||
RAMAllocator<uint8_t> allocator;
|
||||
uint8_t *data = allocator.allocate(container->content_length);
|
||||
if (data == nullptr) {
|
||||
std::string msg = str_sprintf("Failed to allocate %d bytes for manifest", container->content_length);
|
||||
|
||||
Reference in new issue
Block a user