News for hackers. Stuff that matters.
Re:Microsoft to Explore Using Rust by pornel on Friday July 19, 2019 @05:20AM (#20477199)
`mem::forget()` only prevents destructors from running, which leaks data managed by the destructor as a side effect, but it gives no guarantees about not freeing the object passed to it (e.g. if you call it on a stack-allocated object, it can't leak it).

`Box::leak()` leaks memory.

There are no comments on this comment yet.