From 28c1202ba63370d44c003fd35257584b1e68de76 Mon Sep 17 00:00:00 2001 From: Li Zhi Hui Date: Wed, 7 Dec 2011 17:25:48 +0800 Subject: [PATCH] block/qcow2.c: call qcow2_free_snapshots in the function of qcow2_close Signed-off-by: Li Zhi Hui Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2.c | 1 + 1 file changed, 1 insertion(+) 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)