add basic memory leak check setting