Fixed memory leak on debugUtils