]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga-win: fix leaks of build_guest_disk_info()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 3 Nov 2018 13:01:43 +0000 (17:01 +0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 9 Nov 2018 13:50:02 +0000 (07:50 -0600)
commitf898ee0f9951f2875c6cea299b4a1287e0a90e9f
tree4b829dae5b3d83cc65bd0e8c54655c9dbd3e6afd
parent160e5c22e55b3f775c2003dfc626fa872ee4a7a1
qga-win: fix leaks of build_guest_disk_info()

Introduced in commit b1ba8890e63ce9432c41c5c3fc229f54c87c9c99, vol_h
handle should be closed, and "out" cleanup should be done after
DeviceIoControl() fails.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c