4min chapter

The Changelog: Software Development, Open Source cover image

The Rust Programming Language (Interview)

The Changelog: Software Development, Open Source

CHAPTER

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

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode