[PATCH 13/20] qemuMigrationCookieNetworkAlloc: Refactor memory handling