Skip to content

BUG in MDNS memory leak and stom data (IDFGH-16665) #917

@filzek

Description

@filzek

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

What component are you using? If you choose Other, provide details in More Information.

ASIO port

component version

1.8.2

IDF version.

release 5.4

More Information.

The MDNS is creating a memory leakeage at the usage of:
mdns_service_remove("_bane", "_tcp");
wait few ms...
mdns_service_add(NULL, "_bane", "_tcp", 80, NULL, 0);

the memory leak at it.

if just update the txt info on it doesnt leak as
mdns_service_txt_set("_bane", "_tcp", serviceTxtData, 8);

so, the leak is within the remove.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions