Skip to content

Fix potential memory leak#44

Open
brocci wants to merge 1 commit intoVrekrer:masterfrom
brocci:fix/memory-leak-addtoken
Open

Fix potential memory leak#44
brocci wants to merge 1 commit intoVrekrer:masterfrom
brocci:fix/memory-leak-addtoken

Conversation

@brocci
Copy link
Copy Markdown

@brocci brocci commented Apr 20, 2026

Description

Fixed potential memory leak in AddToken_() function where dynamic allocation with new char[] was never freed.

Changes

  • Replace heap allocation (new char[]) with static buffer in class storage
  • Eliminates memory leak on Arduino devices with limited RAM
  • No functional changes to the API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant