Fix: xml: Memory leak when free'ing xml documents