mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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>
This commit is contained in:
parent
97e53cf82c
commit
baf905e580
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue