aboutsummaryrefslogtreecommitdiff
path: root/tests/test-replication.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-11-09 14:45:47 +0400
committerStefan Hajnoczi <stefanha@redhat.com>2016-11-15 15:41:00 +0000
commitbaf905e580ab9c8eaf228822c4a7b257493b4998 (patch)
tree1440ce73b63022eef8c2eae8c17dd40fb5703ab5 /tests/test-replication.c
parent97e53cf82ca0ffa9abe2def2fabc5fc75b914d90 (diff)
test-replication: fix leaks
ASAN spotted: SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20161109104547.23861-1-marcandre.lureau@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/test-replication.c')
-rw-r--r--tests/test-replication.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-replication.c b/tests/test-replication.c
index 0997bd8b74..fac2da3f58 100644
--- a/tests/test-replication.c
+++ b/tests/test-replication.c
@@ -85,6 +85,8 @@ static void test_blk_read(BlockBackend *blk, long pattern,
}
g_free(pattern_buf);
+ g_free(cmp_buf);
+ qemu_iovec_destroy(&qiov);
}
static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset,
@@ -116,6 +118,7 @@ static void test_blk_write(BlockBackend *blk, long pattern, int64_t offset,
}
g_free(pattern_buf);
+ qemu_iovec_destroy(&qiov);
}
/*