Skip to content

Conversation

@kylo5aby
Copy link
Contributor

In MyPassManager::add(), when intercepting and discarding the
FreeMachineFunctionPass to reorder passes, the pass object was
not deleted, may causing a memory leak per pass instance.

The fix properly deletes the discarded pass before returning.

@lum1n0us lum1n0us merged commit 9a23968 into bytecodealliance:main Jan 21, 2026
504 checks passed
@kylo5aby kylo5aby deleted the llvm branch January 22, 2026 03:09
@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
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