Added leak detection for new[]