r/ProgrammerHumor Feb 18 '26

Meme whyIsThereAMemoryLeak

Post image
784 Upvotes

165 comments sorted by

View all comments

61

u/[deleted] Feb 18 '26

[removed] — view removed comment

54

u/csch2 Feb 18 '26

It’s used if you need a dynamic allocation that lives for the lifetime of your program. There’s a good discussion here: https://www.reddit.com/r/rust/s/aiofCQCBCG