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

2017-06-13 Thread Marc-André Lureau
On Tue, Jun 13, 2017 at 2:23 PM Li Ping wrote: > 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

[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/qg