|
|
. automatic storage duration. The object is allocated at the beginning of the enclosing code block and deallocated at the end. - http://en.cppreference.com/w/cpp/language/storage_duration |
new
And then not deleting it. Memory allocated on the heap are not automatically removed like the one's created on the stack, which they are in your code.