upvote
deleted
reply
Memory safety has nothing to do with memory leaks, and it's perfectly valid to leak memory in Rust?

e.g. `Box::leak(Box::new( ... ))`

reply
Memory safety doesn't help too much here, but "RAII" (automatically dropping values when they go out of scope) does.
reply