diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 609eee1891beefcb1f95b7059a8e371d77c7998f..30266786dfafffa08f8481744b419e87e2298ede 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -182,7 +182,6 @@ static int grow_refcount_table(BlockDriverState *bs, int min_size) qcow2_free_clusters(bs, old_table_offset, old_table_size * sizeof(uint64_t)); return 0; fail: - qcow2_free_clusters(bs, table_offset, new_table_size2); qemu_free(new_table); return -EIO; }