qga-win32: Fix memory leak of device information set
authorLi Ping <li.ping288@zte.com.cn>
Fri, 23 Jun 2017 03:17:43 +0000 (11:17 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Jul 2017 08:18:37 +0000 (11:18 +0300)
commit9bd8e9330ade42878b19a5172131087220d590d5
treef7874e67c4d47f86edefedfbd6e3bbcaa7d10a9d
parent32fb354b086eb8981a48c187c17fd937760cd02e
qga-win32: Fix memory leak of device information set

The caller of SetupDiGetClassDevs must delete the returned device information
 set when it is no longer needed by calling SetupDiDestroyDeviceInfoList.

Signed-off-by: Li Ping <li.ping288@zte.com.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qga/commands-win32.c