Re: [PATCH] bugfix: hostmem: Free host_nodes list right after visited

2020-12-09 Thread Igor Mammedov
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:

RE: [PATCH] bugfix: hostmem: Free host_nodes list right after visited

2020-12-08 Thread Chenqun (kuhn)
> 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

[PATCH] bugfix: hostmem: Free host_nodes list right after visited

2020-12-08 Thread Keqian Zhu
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)