On Wed, 9 Dec 2020 10:56:48 +0800
Keqian Zhu wrote:
> In host_memory_backend_get_host_nodes, we build host_nodes
> list and output it to v (a StringOutputVisitor) but forget
> to free the list. This fixes the memory leak.
>
> The memory leak stack:
>
> ==qemu-kvm==209357==ERROR: LeakSanitizer:
> Subject: [PATCH] bugfix: hostmem: Free host_nodes list right after visited
>
> In host_memory_backend_get_host_nodes, we build host_nodes list and
> output it to v (a StringOutputVisitor) but forget to free the list. This
> fixes the
> memory leak.
>
> The memory leak s
In host_memory_backend_get_host_nodes, we build host_nodes
list and output it to v (a StringOutputVisitor) but forget
to free the list. This fixes the memory leak.
The memory leak stack:
==qemu-kvm==209357==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 2 object(s)