summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-11-15 16:17:13 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2016-11-15 16:17:13 +0000
commit82e6e5ef0ec0e55e2be215153219f0ca8b3bee84 (patch)
tree1440ce73b63022eef8c2eae8c17dd40fb5703ab5
parent97e53cf82ca0ffa9abe2def2fabc5fc75b914d90 (diff)
parentbaf905e580ab9c8eaf228822c4a7b257493b4998 (diff)
downloadqemu-82e6e5ef0ec0e55e2be215153219f0ca8b3bee84.tar.gz
Merge remote-tracking branch 'public/tags/block-pull-request' into staging
# gpg: Signature made Tue 15 Nov 2016 03:42:29 PM GMT # gpg: using RSA key 0x9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * public/tags/block-pull-request: test-replication: fix leaks Message-id: 1479224556-19367-1-git-send-email-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-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);
}
/*