Received: from eggs.gnu.org ([2001:4830:134:3::10]:57386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi09Q-0000Zw-V5 for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:18:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi09Q-0000ZN-2b for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:18:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi09P-0000ZI-TV for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:18:00 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 8 Sep 2016 18:17:05 +0400 Message-Id: <20160908141720.30641-11-marcandre.lureau@redhat.com> In-Reply-To: <20160908141720.30641-1-marcandre.lureau@redhat.com> References: <20160908141720.30641-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULLv2 10/25] tests: fix leak in test-string-input-visitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, eblake@redhat.com, armbru@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Free the list returned by visit_type_intList(). Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Eric Blake --- tests/test-string-input-visitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-string-input-visitor.c b/tests/test-string-input-= visitor.c index d837ebe..a679fbc 100644 --- a/tests/test-string-input-visitor.c +++ b/tests/test-string-input-visitor.c @@ -228,6 +228,7 @@ static void test_visitor_in_fuzz(TestInputVisitorData= *data, =20 v =3D visitor_input_test_init(data, buf); visit_type_intList(v, NULL, &ilres, NULL); + qapi_free_intList(ilres); visitor_input_teardown(data, NULL); =20 v =3D visitor_input_test_init(data, buf); --=20 2.10.0