qga: Fix handle fd leak in acquire_privilege()
commit374044f08fe18a18469b981812cd8695f5b3569c
authorGonglei <arei.gonglei@huawei.com>
Mon, 19 May 2014 07:26:03 +0000 (19 15:26 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 3 Jun 2014 20:07:59 +0000 (3 15:07 -0500)
tree73c93efb0b46f013d4aad430409c3ae77d659e50
parente00fcfeab3d452cba3d0a08991a39ab15df66424
qga: Fix handle fd leak in acquire_privilege()

token should be closed in all conditions.
So move CloseHandle(token) to "out" branch.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c