logoalt Hacker News

simonasktoday at 9:52 AM1 replyview on HN

You seem to believe that Rust prevents memory leaks. It does not, and that's not what "memory safety" means.


Replies

sheepttoday at 10:08 AM

Yes, Rust does not guarantee that it'll prevent memory leaks. But the design of the language does make it harder for you (and your collaborators/dependencies) to accidentally leak memory compared to, say, C++.