4 ms·
I like Drop. Memory leaks in Rust are incredibly uncommon. But they are considered memory safe. Box::leak is declared safe, as per the leakpocalipse right befor
by estebank 2y ago
I like Drop. Memory leaks in Rust are incredibly uncommon. But they are considered memory safe. Box::leak is declared safe, as per the leakpocalipse right before 1.0.
A memory leak that is still pointed at by a dangling pointer is not going to cause UB, even though it is still a bug.