Fix a leak in read_stat().