From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4QOE-0006Wg-76 for qemu-devel@nongnu.org; Wed, 09 Nov 2016 05:45:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4QOA-0003Wa-4L for qemu-devel@nongnu.org; Wed, 09 Nov 2016 05:45:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59048) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4QO9-0003Vg-V5 for qemu-devel@nongnu.org; Wed, 09 Nov 2016 05:45:54 -0500 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 9 Nov 2016 14:45:47 +0400 Message-Id: <20161109104547.23861-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] test-replication: fix leaks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, xiecl.fnst@cn.fujitsu.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= ASAN spotted: SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s). Signed-off-by: Marc-Andr=C3=A9 Lureau --- tests/test-replication.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-replication.c b/tests/test-replication.c index 0997bd8..fac2da3 100644 --- a/tests/test-replication.c +++ b/tests/test-replication.c @@ -85,6 +85,8 @@ static void test_blk_read(BlockBackend *blk, long patte= rn, } =20 g_free(pattern_buf); + g_free(cmp_buf); + qemu_iovec_destroy(&qiov); } =20 static void test_blk_write(BlockBackend *blk, long pattern, int64_t offs= et, @@ -116,6 +118,7 @@ static void test_blk_write(BlockBackend *blk, long pa= ttern, int64_t offset, } =20 g_free(pattern_buf); + qemu_iovec_destroy(&qiov); } =20 /* --=20 2.10.0