Added free of temp string variable.