Rust's definition of memory safety doesn't consider leaks unsafe, which isn't to say your system requirements can't .