3 ms·
Strictly speaking Rust doesn't prevent memory leaks. You can easily create cycles in reference counted types, or `std::mem::forget` something. No use of unsafe
by Thiez 7y ago
Strictly speaking Rust doesn't prevent memory leaks. You can easily create cycles in reference counted types, or `std::mem::forget` something. No use of unsafe required either.
That said as long as you don't build graphs with reference counted types it's hard to leak memory by accident.