[XDMF2] Fix some mismatched new-delete pairs
Fix some mismatched new
-delete
pairs in the XDMF2 reader.
This PR fixes some minor memory errors reported by ASAN. It doesn't solve #19299, but it's necessary to see the main causes of the segfaults reported in that issue.