Updated leakcheck to require a filename as parameter