qga: fix file descriptor leak
commitd9c745c1768727aadd77e352c85114bc61e67bd4
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Jul 2018 16:21:56 +0000 (15 18:21 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 16 Jul 2018 20:05:58 +0000 (16 15:05 -0500)
tree508ff8b7414b32864b968058ea60a1748962da5b
parentbb23a7362a7942739f080990a53e44afc319e36c
qga: fix file descriptor leak

The file descriptor for /sys/power/state was never closed.  Reported
by Coverity.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c