]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus
authorbors <bors@rust-lang.org>
Wed, 26 Feb 2020 12:48:53 +0000 (12:48 +0000)
committerbors <bors@rust-lang.org>
Wed, 26 Feb 2020 12:48:53 +0000 (12:48 +0000)
commit892cb143e5984f220e6b26b48d972bd1f4644298
tree196b7add117dcb113ed0935e589060720f89ab84
parent3a0d106109d73ed2e45a9925a9512ade2afb7df9
parente5987a062f487321bdfcbbdac4b0b30548258631
Auto merge of #67290 - jonas-schievink:leak-audit, r=KodrAus

Audit liballoc for leaks in `Drop` impls when user destructor panics

Inspired by https://github.com/rust-lang/rust/pull/67243 and https://github.com/rust-lang/rust/pull/67235, this audits and hopefully fixes the remaining `Drop` impls in liballoc for resource leaks in the presence of panics in destructors called by the affected `Drop` impl.

This does not touch `Hash{Map,Set}` since they live in hashbrown. They have similar issues though.

r? @KodrAus
src/liballoc/collections/btree/map.rs
src/liballoc/collections/linked_list.rs
src/liballoc/tests/btree/map.rs
src/liballoc/vec.rs