]> git.proxmox.com Git - qemu.git/commit
qemu-ga: Plug file descriptor leak on ga_open_pidfile() error path
authorMarkus Armbruster <armbru@redhat.com>
Fri, 11 Jan 2013 10:24:59 +0000 (11:24 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 14 Jan 2013 18:07:48 +0000 (12:07 -0600)
commit03ac10f166b790cb66804e512abec6d002cd8481
tree463fb89c78932551b6b5b23310a57c52cdb5ea2c
parent5d27f9ce3de424207883d84352d76150e9707394
qemu-ga: Plug file descriptor leak on ga_open_pidfile() error path

Spotted by Coverity.  Also document why we keep it open on success.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c