Skip to content

DNSServer memory leak #6663

Closed
Closed
@alex-code

Description

@alex-code

Board

DFRobot FireBeetle2

Device Description

None

Hardware Configuration

None

Version

v2.0.2

IDE Name

PlateformIO

Operating System

Win11

Flash frequency

80

PSRAM enabled

no

Upload speed

115200

Description

A project I'm working on uses DNSServer on demand and I noticed a memory leak.

Memory is allocated in the DNSServer class constructor but there's no destructor to free it.

https://github.com/espressif/arduino-esp32/blob/master/libraries/DNSServer/src/DNSServer.cpp#L16
https://github.com/espressif/arduino-esp32/blob/master/libraries/DNSServer/src/DNSServer.cpp#L17

Sketch

None

Debug Message

None

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

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions