72
Bjarne Stroustrup: How do I deal with memory leaks? By writing code that doesn't have any.
(www.stroustrup.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
A "true" memory leak isn't just memory that is never freed, it's memory that CAN'T be freed. Usually because the handle / pointer to it was thrown away.
The distinction isn't really all the important though, it all looks the same as far as how the program functions.