tests: pc-cpu-test leaks fixes
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 18 Jul 2016 10:56:51 +0000 (14:56 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Sep 2016 14:05:22 +0000 (18:05 +0400)
commit34e46f604d3cf26144b4e02989f2f096e3dc2a41
tree04fad2112fd60e59b2764ab209a815309cb70438
parent822e36ca358c20406c34b7cb585d1ce2456027d5
tests: pc-cpu-test leaks fixes

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 <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/pc-cpu-test.c