qga: Fix handle fd leak in acquire_privilege()
commitba980a52d65a2eb20aba22a7cd3cd9de1fc9cbdc
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, 5 Aug 2014 18:41:28 +0000 (5 13:41 -0500)
treebbc24a7ed0e88c784c7fd0967ff7fbd5ec20802f
parentdf54f5efed9b3be7f40e14113cc1f13f5889e644
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>
(cherry picked from commit 374044f08fe18a18469b981812cd8695f5b3569c)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-win32.c