Message ID | 20180702025836.20957-2-famz@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/qcow2.c b/block/qcow2.c index 2f9e58e0c4..3177c72de0 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -3338,7 +3338,6 @@ qcow2_co_copy_range_to(BlockDriverState *bs, int ret; unsigned int cur_bytes; /* number of sectors in current iteration */ uint64_t cluster_offset; - uint8_t *cluster_data = NULL; QCowL2Meta *l2meta = NULL; assert(!bs->encrypted); @@ -3397,7 +3396,6 @@ fail: qemu_co_mutex_unlock(&s->lock); - qemu_vfree(cluster_data); trace_qcow2_writev_done_req(qemu_coroutine_self(), ret); return ret;
Reported-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> --- block/qcow2.c | 2 -- 1 file changed, 2 deletions(-)