Fix memory leaks in rxml.