Re: [Qemu-devel] [PATCH v2 34/37] tests: pc-cpu-test leaks fixes

2016-07-28 Thread Eric Blake
On 07/28/2016 08:38 AM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > The path is allocated and should be freed. > > The qmp response should be unref, but then 'machine' must be duplicated. > > Use a destroy function for the PCTestData. > > Signed-off-by: Marc-André Lureau

[Qemu-devel] [PATCH v2 34/37] tests: pc-cpu-test leaks fixes

2016-07-28 Thread marcandre . lureau
From: Marc-André Lureau The path is allocated and should be freed. The qmp response should be unref, but then 'machine' must be duplicated. Use a destroy function for the PCTestData. Signed-off-by: Marc-André Lureau --- tests/pc-cpu-test.c | 24 +++- 1 file changed, 19 in