Re:Rust for C++ programmers – part 4: unique pointers
by rcxdude on Tuesday April 29, 2014 @03:35AM
(#7665519)
Only if you move the pointer into a vector or similar. just having loop { let x = ~"something"; } will not create a memory leak, as the pointer will be dropped and freed at the end of the loop.
[ Parent
| on HN ]
There are no comments on this comment yet.