[Qemu-devel] [PATCH RESEND] QEMU Guest Agent: Fix memory leak of device information set

2017-06-22 Thread Li Ping
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 Reviewed-by: Marc-André Lureau --- qga/commands-win32.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH] QEMU Guest Agent: Fix memory leak of device information set

2017-06-13 Thread Li Ping
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 --- qga/commands-win32.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qga/commands-win32.c b