Skip to content

Conversation

@kylo5aby
Copy link
Contributor

When gct_vm_begin_rootset_enumeration returns failure, the mark_node
allocated during the enumeration process was not being freed, causing
a memory leak.

Fix by calling rollback_mark() to release any allocated mark_node
before returning GC_ERROR.

@kylo5aby kylo5aby requested a review from no1wudi as a code owner January 20, 2026 06:25
@lum1n0us lum1n0us added the bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs. label Jan 23, 2026
@lum1n0us lum1n0us merged commit 09a2456 into bytecodealliance:main Jan 26, 2026
504 checks passed
@kylo5aby kylo5aby deleted the gc branch January 30, 2026 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Determine if this PR addresses a bug. It will be used by scripts to classify PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants