Working on memory Leaks