migration: fix QIOChannelFile leak on error in file_connect_outgoing
Commit 03a680c978 changed g_autoptr(QIOChannelFile) to a plain pointer but failed to restore the necessary object_unref() calls on error paths. Previously, these were handled implicitly by the g_autoptr cleanup mechanism. Two error paths currently leak the QIOChannelFile object and its underlying file descriptor: 1. When ftruncate() fails (e.g., on character or block devices). 2. When qio_channel_io_seek() fails after the channel is created. In environments that retry migration automatically (e.g., libvirt), these FDs accumulate until QEMU hits RLIMIT_NOFILE and fails with EMFILE (Too many open files). Add the missing object_unref() calls to both error paths to ensure resources are properly released. Signed-off-by: Trieu Huynh <vikingtc4@gmail.com> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/qemu-devel/20260328121215.159532-1-vikingtc4@gmail.com Signed-off-by: Fabiano Rosas <farosas@suse.de>