Fixed CheckPass memory leak