Different ways of leaking memory

Viewed 3808

The basic concept of memory leaking is a mismatch of a new/delete operation during code execution, either due to wrong coding practices or either in cases of errors when the delete operation is skipped.

But recently I was asked a question in an interview about other ways in which memory can leak. I had no answer to it. What is it?

7 Answers
Related