Went back to use CRT to detect memory leaks.