From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bStcG-0002vP-6U for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:17:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bStcC-0006n4-8P for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:17:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bStcC-0006mz-2d for qemu-devel@nongnu.org; Thu, 28 Jul 2016 18:17:16 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BDBE13B703 for ; Thu, 28 Jul 2016 22:17:15 +0000 (UTC) References: <20160728143808.13707-1-marcandre.lureau@redhat.com> <20160728143808.13707-35-marcandre.lureau@redhat.com> From: Eric Blake Message-ID: <579A846A.5090002@redhat.com> Date: Thu, 28 Jul 2016 16:17:14 -0600 MIME-Version: 1.0 In-Reply-To: <20160728143808.13707-35-marcandre.lureau@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xsBJSJdO7oRVjADJXJiU03v1doOJf6R4G" Subject: Re: [Qemu-devel] [PATCH v2 34/37] tests: pc-cpu-test leaks fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xsBJSJdO7oRVjADJXJiU03v1doOJf6R4G From: Eric Blake To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Message-ID: <579A846A.5090002@redhat.com> Subject: Re: [PATCH v2 34/37] tests: pc-cpu-test leaks fixes References: <20160728143808.13707-1-marcandre.lureau@redhat.com> <20160728143808.13707-35-marcandre.lureau@redhat.com> In-Reply-To: <20160728143808.13707-35-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/28/2016 08:38 AM, marcandre.lureau@redhat.com wrote: > From: Marc-Andr=C3=A9 Lureau >=20 > The path is allocated and should be freed. >=20 > The qmp response should be unref, but then 'machine' must be duplicated= =2E >=20 > Use a destroy function for the PCTestData. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > tests/pc-cpu-test.c | 24 +++++++++++++++++++----- > 1 file changed, 19 insertions(+), 5 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --xsBJSJdO7oRVjADJXJiU03v1doOJf6R4G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXmoRqAAoJEKeha0olJ0NqkoEH/08mAvCfHVdT8qwo7X7YBFMi oi6DK+/L0LwmVSroWSSNagc1TuVML7bljYJii5UY0OLnpouq2W9/vppK1sioD4gH TqgyX45aiw09hqlhTR+NL9Ys2U9Xoay/yhmYVvyz/Vq7gmouBOKqxxrL5XCqSnfm jwe6xnSkiePSdWEdwX9grWtwu48Fqg4e4w1Gmq/BbR1kSVDgTgGceFLsMh5SNfYq F89iYJteI4nYJ/OJauFkKvmuHEuHO0OA2J1YvModNfgV4LDpGjwF1KlxVxBglI6P PDzks/uGFXxZvke+hNWIjZ+IQcDKa4NraOpL9SCRCs6hMGnjuY+KKM2FIZd/aCs= =c+Gp -----END PGP SIGNATURE----- --xsBJSJdO7oRVjADJXJiU03v1doOJf6R4G--