kill the memory leaks