Salesforce Interview Question

What is a memory leak, how does it occur, how to prevent it?