]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
qga: Fix handle fd leak in acquire_privilege()
authorGonglei <arei.gonglei@huawei.com>
Mon, 19 May 2014 07:26:03 +0000 (15:26 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 16 Jul 2014 00:28:00 +0000 (19:28 -0500)
commit23dbc56d22b3de291a75ae40563bf45573569840
treeb2a7116d207caddc4db669f6e6e8929b8b7415de
parent404194562406e71d41c52742e674279e601903d6
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