io: Don't call close multiple times in QIOChannelFile
commita2565df12c59362c061084a0c853dace410cac26
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 1 Nov 2017 14:25:25 +0000 (1 14:25 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 15 Feb 2018 16:54:57 +0000 (15 16:54 +0000)
tree671ec6dad0f4da0448ff597685887e1d81434055
parent902f6e14fc68743ce24efb7d87dc3f8464a78bf3
io: Don't call close multiple times in QIOChannelFile

If the file descriptor underlying QIOChannelFile is closed in the
io_close() method, don't close it again in the finalize() method since
the file descriptor number may have been reused in the meantime.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-file.c