From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5BSs-0005nl-AM for qemu-devel@nongnu.org; Fri, 11 Nov 2016 08:01:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5BSm-0001Xr-EX for qemu-devel@nongnu.org; Fri, 11 Nov 2016 08:01:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54754) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c5BSm-0001XY-9B for qemu-devel@nongnu.org; Fri, 11 Nov 2016 08:01:48 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 79446C05AA6F for ; Fri, 11 Nov 2016 13:01:47 +0000 (UTC) From: Fam Zheng Date: Fri, 11 Nov 2016 21:01:42 +0800 Message-Id: <1478869302-2559-2-git-send-email-famz@redhat.com> In-Reply-To: <1478869302-2559-1-git-send-email-famz@redhat.com> References: <1478869302-2559-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 1/1] test-uuid: fix leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com From: Marc-Andr=C3=A9 Lureau ASAN spotted: SUMMARY: AddressSanitizer: 74 byte(s) leaked in 2 allocation(s). Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20161109110210.25925-1-marcandre.lureau@redhat.com> Reviewed-by: John Snow Signed-off-by: Fam Zheng --- tests/test-uuid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-uuid.c b/tests/test-uuid.c index 77dcdc4..d3a2791 100644 --- a/tests/test-uuid.c +++ b/tests/test-uuid.c @@ -161,6 +161,7 @@ static void test_uuid_unparse_strdup(void) } out =3D qemu_uuid_unparse_strdup(&uuid_test_data[i].uuid); g_assert_cmpstr(uuid_test_data[i].uuidstr, =3D=3D, out); + g_free(out); } } =20 --=20 2.7.4