As I do keep tabs on what’s going on with C++ around the web, I chanced upon this short and succinct article about ‘free’ and ‘delete’ not returning memory to the OS from Thought Garage which starts with:
When you call free() or delete(), it will NOT really release any memory...
One of the more basic and fundamental idioms of C++ programming is that of RAII. It’s so simple and fundamental that C++ seems to be the only programming language that supports this idiom. From Wikipedia, RAII is:
Resource Acquisition Is Initialization, often referred to by the acronym RAII (or...