remove all memory leaks.