[PATCH 2/2] vmx: use xmlBufferDetach() when applicable