Fix memory leak when used score2char()