Pergunta de entrevista da empresa Allscripts

What is Dispose()? How do you avoid memory leaks?