diff options
author | Li Zhi Hui <zhihuili@linux.vnet.ibm.com> | 2011-12-07 17:25:48 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-15 12:40:08 +0100 |
commit | 28c1202ba63370d44c003fd35257584b1e68de76 (patch) | |
tree | 1c9e2bec649093c98fd77cf920424a7e3c86aa62 /block | |
parent | 3f3aace83046a6740d4e6f92811d333c6741db00 (diff) | |
download | qemu-28c1202ba63370d44c003fd35257584b1e68de76.tar.gz qemu-28c1202ba63370d44c003fd35257584b1e68de76.tar.bz2 qemu-28c1202ba63370d44c003fd35257584b1e68de76.zip |
block/qcow2.c: call qcow2_free_snapshots in the function of qcow2_close
Signed-off-by: Li Zhi Hui <zhihuili@linux.vnet.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/qcow2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index 37cd4424d4..aa32e8d01a 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -635,6 +635,7 @@ static void qcow2_close(BlockDriverState *bs) g_free(s->cluster_cache); qemu_vfree(s->cluster_data); qcow2_refcount_close(bs); + qcow2_free_snapshots(bs); } static void qcow2_invalidate_cache(BlockDriverState *bs) |