XML:free() Release all memory allocated to the parsed XML document. Exampledoc = XML.parse(str) doc:free()