]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid fd leak on incoming tunneled migration
authorJiri Denemark <jdenemar@redhat.com>
Mon, 19 Jun 2017 15:00:28 +0000 (17:00 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 26 Jun 2017 08:36:57 +0000 (10:36 +0200)
commit2abb0e4bb21928ba281b68c142d3352c75645eb3
treec766d072573822ac942562b11137741fb40f7e5a
parentf454464ddddb72301ea9885d3673f9babc9ee192
qemu: Avoid fd leak on incoming tunneled migration

While qemuProcessIncomingDefNew takes an fd argument and stores it in
qemuProcessIncomingDef structure, the caller is still responsible for
closing the file descriptor.

Introduced by commit v1.2.21-140-ge7c6f4575.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_process.c