Re:Effective Rust
by 0x457 on Sunday March 02, 2025 @03:33PM
(#43234747)
What's unsafe about implicitly "leaking" memory?
[ Parent
| on HN ]
Destructors do more than just free memory.
I've specifically said leaking memory? Then again, destructor that didn't run would be an application level error not "safety in rust" error.
You were responding to my comment, which had scope broader than just leaking memory. So, to suggest it is only about leaking memory is not really responsive.
Running out of memory and killing the OS I would guess unless the OS kills misbehaving process first.