Diagnose C++ new/delete operator memory leak issue