llvm-project
4e348bf6 - [orc-rt] Fix memory leak in WrapperFunctionResult. (#156795)

Commit
3 days ago
[orc-rt] Fix memory leak in WrapperFunctionResult. (#156795) 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.
Author
Parents
Loading