From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPqZA-00037H-Ti for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPqZ4-00066a-V3 for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:25:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPqZ4-00066V-Om for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:25:26 -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 3DFAE710AE for ; Wed, 20 Jul 2016 12:25:26 +0000 (UTC) References: <20160719085432.4572-1-marcandre.lureau@redhat.com> <20160719085432.4572-28-marcandre.lureau@redhat.com> From: Eric Blake Message-ID: <578F6DB5.9070000@redhat.com> Date: Wed, 20 Jul 2016 06:25:25 -0600 MIME-Version: 1.0 In-Reply-To: <20160719085432.4572-28-marcandre.lureau@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d80sNn5SUQX6u3lwQnODv7QiIl1mugBPa" Subject: Re: [Qemu-devel] [PATCH 27/37] qjson: free str 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) --d80sNn5SUQX6u3lwQnODv7QiIl1mugBPa From: Eric Blake To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Message-ID: <578F6DB5.9070000@redhat.com> Subject: Re: [Qemu-devel] [PATCH 27/37] qjson: free str References: <20160719085432.4572-1-marcandre.lureau@redhat.com> <20160719085432.4572-28-marcandre.lureau@redhat.com> In-Reply-To: <20160719085432.4572-28-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 07/19/2016 02:54 AM, marcandre.lureau@redhat.com wrote: > From: Marc-Andr=C3=A9 Lureau >=20 > Release the qstring allocated in qjson_new(). >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > migration/qjson.c | 1 + > 1 file changed, 1 insertion(+) >=20 Reviewed-by: Eric Blake > diff --git a/migration/qjson.c b/migration/qjson.c > index 5cae55a..f345904 100644 > --- a/migration/qjson.c > +++ b/migration/qjson.c > @@ -109,5 +109,6 @@ void qjson_finish(QJSON *json) > =20 > void qjson_destroy(QJSON *json) > { > + QDECREF(json->str); > g_free(json); > } >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --d80sNn5SUQX6u3lwQnODv7QiIl1mugBPa 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/ iQEcBAEBCAAGBQJXj221AAoJEKeha0olJ0NqKHUH/iu3w+Io0l39c6D8nnUmn148 /Vfm7jLeoanzjx4Ep2nkwyag8JsQEqqm9M99QALEMRRRGCmo2XRC338eXMly//5F sgQTVFkFyeU5It4mZtJn99F2wABId4bBwXuLC0qKasFq5pzQOfGi9DebtExq6j4j zM6KjC/PkM1Wm/4LhhBERb8IZsFf6pXpUjdczYg8Xzqvmy0JHejsChzpUZ7X5ymr RD5jztoFxDiBXV4Ma/0ae1R+sVuM12qqaRWwLc0tQbJad7gJUkWSL1duwnmY/dnW suH1aE7XQSR08Eat5q/f5Bf54efCAPh8/SpO4hKh54Q1lzDAQEZksdW5KM6QBFo= =s2+Z -----END PGP SIGNATURE----- --d80sNn5SUQX6u3lwQnODv7QiIl1mugBPa--