From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6fsh-0002DY-RU for qemu-devel@nongnu.org; Tue, 15 Nov 2016 10:42:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6fsg-0008D0-27 for qemu-devel@nongnu.org; Tue, 15 Nov 2016 10:42:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35232) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c6fsf-0008Ct-T4 for qemu-devel@nongnu.org; Tue, 15 Nov 2016 10:42:41 -0500 From: Stefan Hajnoczi Date: Tue, 15 Nov 2016 15:42:36 +0000 Message-Id: <1479224556-19367-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1479224556-19367-1-git-send-email-stefanha@redhat.com> References: <1479224556-19367-1-git-send-email-stefanha@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-replication: fix leaks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Stefan Hajnoczi From: Marc-Andr=C3=A9 Lureau ASAN spotted: SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s). Signed-off-by: Marc-Andr=C3=A9 Lureau Message-id: 20161109104547.23861-1-marcandre.lureau@redhat.com Signed-off-by: Stefan Hajnoczi --- 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.7.4