Easy reading for the above link :
Quote:
Originally Posted by link Posted Above
Memory leaks in C++ and how to avoid them
A memory leak is what happens when you forget to free a block of memory allocated with the new operator or when you make it impossible to do so. As a consequence your application may eventually run out of memory and may even cause the system to crash. I will now give you a few tips. Remember that code lines shown in red are the best alternative to each situation - they may be added or may even replace previous code.
|