[PATCH 15/20] qemuMigrationCookieNetworkXMLParse: Refactor memory handling