• Mechanize@feddit.it
      link
      fedilink
      English
      arrow-up
      13
      ·
      edit-2
      14 hours ago

      You can leak memory in perfectly safe Rust, because it is not a bug per se, an example is by using Box::leak

      Preventing memory leaks was never in the intentions of Rust. What it tries to safeguard you from are Memory Safety bugs like the infamous and common double free.