diff options
author | Lang Hames <lhames@gmail.com> | 2025-09-04 14:15:42 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 14:15:42 +1000 |
commit | 4e348bf628566b323790a02a85433cfdf8a482cb (patch) | |
tree | 8f2c406610a48f0b916635c9766581554d2762aa /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | a95edec28a4900d15f6fce17561964071600609a (diff) | |
download | llvm-4e348bf628566b323790a02a85433cfdf8a482cb.zip llvm-4e348bf628566b323790a02a85433cfdf8a482cb.tar.gz llvm-4e348bf628566b323790a02a85433cfdf8a482cb.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions