fixes #4307 remove memory leak check.