Skip to content

Arduino OTA Updater has memory leak in certain conditions #7984

Closed
@DamronDan

Description

@DamronDan

Board

any board using updater.cpp

Device Description

tested on many ESP32 dev boards

Hardware Configuration

mainly WLED strings, not much else.

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 10/11

Flash frequency

40Mhz/80Mhz

PSRAM enabled

no

Upload speed

921600, 115200

Description

On an OTA firmware attempt, if the transfer fails, and updateClass is defined statically, the buffers used for the update are not freed.

There is no destructor.

Sketch

any sketch using update.cpp

Debug Message

ESP.getFreeHeap() shows heap memory from buffers being allocated, and not used.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions