
The Rust Programming Language (Interview)
The Changelog: Software Development, Open Source
00:00
How to Get Rid of a Memory Leak in Rust
In Rust, there's never a situation where two of us think that we own the pointer. The owner is the person who is responsible for deallocating that resource. So whenever they're finished with it, they get rid of it. They have like 777 permissions on it, right? They have root permissions for that object. And in this case, Rust inserts a cleanup code for you. But when you say the person, do you mean the variable or the thread or? The variable, sorry. Yeah. This is hard to have over words. It's like, oh, it makes it a lot. I was just amazed after I wrote 10 or 20,000 lines of Rust code
Transcript
Play full episode