Re: [PATCH] qemuDomainGetStatsIOThread: Don't leak array with 0 iothreads

2020-02-19 Thread Ján Tomko
On Wed, Feb 19, 2020 at 09:26:23AM +0100, Peter Krempa wrote: qemuMonitorGetIOThreads returns a NULL terminated list even when 0 NULL-terminated iothreads are present. The caller didn't perform cleanup if there were 0 iothreads leaking the array. https://bugzilla.redhat.com/show_bug.cgi?id=1

[PATCH] qemuDomainGetStatsIOThread: Don't leak array with 0 iothreads

2020-02-19 Thread Peter Krempa
qemuMonitorGetIOThreads returns a NULL terminated list even when 0 iothreads are present. The caller didn't perform cleanup if there were 0 iothreads leaking the array. https://bugzilla.redhat.com/show_bug.cgi?id=1804548 Reported-by: Jing Yan Signed-off-by: Peter Krempa --- src/qemu/qemu_drive