Fix for leaks in benchmark tool, and format specifier on WIndows.
Fix for leak in method.