Skip to content

Conversation

lhames
Copy link
Contributor

@lhames lhames commented Sep 4, 2025

Previously Tmp could have been left owning a heap-allocated buffer and would not have freed it on destruction (since Tmp was a C orc_rt_WrapperFunctionResult).

This patch removes Tmp and simply resets R before swapping it with Other.R.

Previously `Tmp` could have been left owning a heap-allocated buffer and would
not have freed it on destruction (since Tmp was a C
orc_rt_WrapperFunctionResult).

This patch removes Tmp and simply resets R before swapping it with Other.R.
@lhames lhames merged commit 4e348bf into llvm:main Sep 4, 2025
10 checks passed
@lhames lhames deleted the orc-rt-fix-leak branch September 4, 2025 04:15
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