Frees temp_string (good practice).