Skip to content

Fix many memory leaks#378

Draft
MaartenS11 wants to merge 1 commit into
mainfrom
fix/memory-leaks
Draft

Fix many memory leaks#378
MaartenS11 wants to merge 1 commit into
mainfrom
fix/memory-leaks

Conversation

@MaartenS11
Copy link
Copy Markdown
Member

@MaartenS11 MaartenS11 commented May 22, 2026

This PR fixes some (but not all) memory leaks in WARDuino. The main goal is to make the reset operation not leak a huge amount of memory so that it can actually be used on larger wasm programs on a microcontroller without crashing because it's running out of memory.

  • Fix init/free module state not freeing everything it allocates
  • Update reset in the debugger so it does not duplicate the module data (I have a basic version locally but it needs some more polish)

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