Re: [Qemu-devel] [PATCH 1/1] hostmem-file: fixed the memory leak while get pmem path.

2018-10-16 Thread Eduardo Habkost
On Tue, Oct 16, 2018 at 12:55:08PM +0100, Peter Maydell wrote: > On 29 August 2018 at 18:50, Eduardo Habkost wrote: > > On Wed, Aug 29, 2018 at 12:14:22AM +0800, Zhang Yi wrote: > >> object_get_canonical_path_component() returns a string which > >> must be freed using g_free(). > >> > >> Reported-

Re: [Qemu-devel] [PATCH 1/1] hostmem-file: fixed the memory leak while get pmem path.

2018-10-16 Thread Peter Maydell
On 29 August 2018 at 18:50, Eduardo Habkost wrote: > On Wed, Aug 29, 2018 at 12:14:22AM +0800, Zhang Yi wrote: >> object_get_canonical_path_component() returns a string which >> must be freed using g_free(). >> >> Reported-by: Peter Maydell >> Signed-off-by: Michael S. Tsirkin >> Signed-off-by:

Re: [Qemu-devel] [PATCH 1/1] hostmem-file: fixed the memory leak while get pmem path.

2018-08-29 Thread Eduardo Habkost
On Wed, Aug 29, 2018 at 12:14:22AM +0800, Zhang Yi wrote: > object_get_canonical_path_component() returns a string which > must be freed using g_free(). > > Reported-by: Peter Maydell > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Zhang Yi Reviewed-by: Eduardo Habkost Queueing on machi

[Qemu-devel] [PATCH 1/1] hostmem-file: fixed the memory leak while get pmem path.

2018-08-28 Thread Zhang Yi
object_get_canonical_path_component() returns a string which must be freed using g_free(). Reported-by: Peter Maydell Signed-off-by: Michael S. Tsirkin Signed-off-by: Zhang Yi --- backends/hostmem-file.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backends/ho