ZeMoSo interview question

How would you deal with memory leak?