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.
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.