add missing free in xml reading