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

Ján Tomko jtomko at redhat.com
Wed Feb 19 08:55:50 UTC 2020


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=1804548
>
>Reported-by: Jing Yan <jiyan at redhat.com>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>

Fixes: d1eac92784573559b6fd56836e33b215c89308e3

>---
> src/qemu/qemu_driver.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200219/0b6c8960/attachment-0001.sig>


More information about the libvir-list mailing list