Notes on memory checking. Trying to see if there is a memory leak somewhere.