test-replication: fix leaks
PATCH 1/1 test-replication: fix leaks
ASAN spotted:
SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s).
Signed-off-by Marc-André Lureau <[email protected]>
--- tests/test-replication.c | 3 +++ 1 file changed, 3 insertions(+)
tests/test-replication.c +3 -0
@@ -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); }/*
Signature · 1 line
2.10.0
Stefan Hajnoczi
AppliedQuoted 7 lines · Marc-André Lureau
ASAN spotted:
SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s).Signed-off-by Marc-André Lureau <[email protected]>--- tests/test-replication.c | 3 +++ 1 file changed, 3 insertions(+)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan