Merge pull request #3421 from nrwahl2/nrwahl2-fix
Fix: libcrmcommon: Avoid use-after-free in mark_xml_changes()