Removed a memory leak from the memory leak detector tests