![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/f3189f30-f8c8-4c4f-b957-e3a7bfd1c784.png)
23·
1 year agolet mut memory_leak = Vec::<u8>::new();
loop {
memory_leak.push(0);
}
let mut memory_leak = Vec::<u8>::new();
loop {
memory_leak.push(0);
}
Rust protects you from segfaulting and trying to access deallocated memory, but doesn’t protect you from just deciding to keep everything in memory. That’s a design choice. The original developers probably didn’t expect such a deluge of users.
I prefer having to logout to see content.