Fixed small leak in the XML code.