&gt; <i>Rust programs, however, won’t leak memory because the compiler makes sure you didn’t write code that could leak memory, and then writes down the parts about freeing memory into the final executable;</i><p>A nitpick: Rust doesn&#x27;t guarantee you won&#x27;t leak memory, although it makes it much less likely than in C. Leaking memory is actually officially Safe (in the sense of Rust&#x27;s safe&#x2F;unsafe division) since it can&#x27;t cause a program to access not-yet-allocated memory or already-freed memory.