Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: remove module from the list when calling m3_FreeModule. #390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YoungWenMing
Copy link

A module maybe freed after it is loaded to the runtime and before the runtime is released. Hence, it is necessary to remove the module from the runtime's module list to avoid one module be freed twice.

Fix #389

A module maybe freed after it is loaded to the runtime and before
the runtime is released. Hence, it is necessary to remove the module
from the runtime's module list to avoid one module be freed twice.

Fix wasm3#389
@zhangao0086
Copy link

ping

@garrisonhh
Copy link
Contributor

this isn't a bug afaik, the doc comment for m3_LoadModule states that this is intended behavior

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

Successfully merging this pull request may close these issues.

A M3Module maybe freed twice.
3 participants