about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-01-14 15:29:43 +0000
committerbors <bors@rust-lang.org>2020-01-14 15:29:43 +0000
commit8a87b945b27b5670ac5ed665bbb0fccc1b88a0a0 (patch)
tree54b1965761803218ab8de9e66368698ec4a1b49d /src/test/debuginfo/enum-thinlto.rs
parentcb6122db3fa22031c48ca6b332fc856b8d098027 (diff)
parent25519e5290b4e04ab7a6cb07bcda01a542a0b1f3 (diff)
downloadrust-8a87b945b27b5670ac5ed665bbb0fccc1b88a0a0.tar.gz
rust-8a87b945b27b5670ac5ed665bbb0fccc1b88a0a0.zip
Auto merge of #67711 - Amanieu:fix_unwind_leak, r=alexcrichton
Fix memory leak if C++ catches a Rust panic and discards it

If C++ catches a Rust panic using `catch (...)` and then chooses not to rethrow it, the `Box<dyn Any>` in the exception may be leaked. This PR fixes this by adding the necessary destructors to the exception object.

r? @Mark-Simulacrum
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions