I'm as disenfranchised with Rust and its god awful community as the next guy but Rust never claimed to prevent memory leaks. It's actually surprisingly easy to accidentally leak memory. In addition to that there are "safe" methods built into the language who's explicit purpose is to leak a pointer or prevent a destructor from running or some variation of the two.